Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class customList {
- private $db_connection = null;
- private $db_connectionSecond = null;
- public $auctionmessages = array();
- public $donationmessages = array();
- public $formDebugMessages = array();
- public $formDebugList = array();
- public $metalist = array();
- public $debugging = 0;
- public function __construct(){
- $this->databaseConnection();
- $this->databaseConnectionSecond();
- $checkListResult = $this->checkList();
- if($checkListResult == false){
- $this->auctionmessages[] = 'There already are active auctions';
- }else{
- $this->auctionmessages[] = 'No more auctions, adding new auctions';
- $this->setNewPost();
- }
- $this->checkDonations();
- }
- private function databaseConnection(){ //database connection
- if ($this->db_connection != null) {
- return true;
- } else {
- try {
- $this->db_connection = new PDO('mysql:host='. DB_HOST .';dbname='. DB_NAME . ';charset=utf8', DB_USER, DB_PASSWORD);
- if($this->debugging == 1){
- $this->db_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $this->db_connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); //debugging
- }
- return true;
- } catch (PDOException $e) {
- $this->auctionmessages[] = $e->getMessage();
- }
- }
- return false;
- }
- private function databaseConnectionSecond(){ //database connection
- if ($this->db_connectionSecond != null) {
- return true;
- } else {
- try {
- $this->db_connectionSecond = new PDO('mysql:host='. DB_HOST2 .';dbname='. DB_NAME2 . ';charset=utf8', DB_USER2, DB_PASSWORD2);
- if($this->debugging == 1){
- $this->db_connectionSecond->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $this->db_connectionSecond->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); //debugging
- }
- return true;
- } catch (PDOException $e) {
- $this->auctionmessages[] = $e->getMessage();
- }
- }
- return false;
- }
- public function AuthFunction(){
- if(1 == 1){
- return true; //if user is logged in/admin return true
- }
- return false;
- }
- private function checkDonations(){
- if($this->AuthFunction() == true){
- $full_insert_data = array();
- $data = $this->getSoldDonations();
- $this->donationmessages[] = "Found ".count($data)." finished auctions";
- foreach($data as $auction){
- $check_donation_list = $this->db_connection->prepare("SELECT *
- FROM auction WHERE auctionid = :id");
- $check_donation_list->bindValue(':id', $auction, PDO::PARAM_INT);
- $check_donation_list->execute();
- if($check_donation_list->rowcount() == 0){
- $get_postMeta = $this->db_connection->prepare("SELECT post_id, meta_key, meta_value FROM wp_postmeta
- WHERE post_id = :id AND meta_value = 'added' AND meta_key = 'auction_added_status'");
- $get_postMeta->bindValue(':id', $auction, PDO::PARAM_INT);
- $get_postMeta->execute();
- if($get_postMeta->rowcount() == 0){
- $this->donationmessages[] = "Found a new auction with auction id: ".$auction;
- $get_bid = $this->db_connection->prepare("SELECT bid, name, email, auction_id FROM wp_wdm_bidders
- WHERE auction_id = :id ORDER BY bid DESC");
- $get_bid->bindValue(':id', $auction, PDO::PARAM_INT);
- $get_bid->execute();
- if($get_bid->rowcount() > 0){
- $biddata = $get_bid->fetch(PDO::FETCH_ASSOC);
- $auctionpost = $this->getSettings($auction, "gettitle");
- $get_userip = $this->db_connection->prepare("SELECT ip FROM wp_user_login_log WHERE user_login = :id");
- $get_userip->bindValue(':id', $biddata['name'], PDO::PARAM_STR);
- $get_userip->execute();
- if($get_userip->rowcount() > 0){
- $userip = $get_userip->fetchAll(PDO::FETCH_ASSOC);
- $userip = $userip[0]["ip"];
- }else{
- $userip = "NOIP";
- }
- $full_insert_data[$auction]['bid'] = $biddata['bid'];
- $full_insert_data[$auction]['itemname'] = $auctionpost;
- $full_insert_data[$auction]['username'] = $biddata['name'];
- $full_insert_data[$auction]['email'] = $biddata['email'];
- $full_insert_data[$auction]['ip'] = $userip;
- $this->donationmessages[] = "The highest bid for this auction was: ".$full_insert_data[$auction]['bid'];
- $set_new_donation = $this->db_connectionSecond->prepare("INSERT INTO
- auction (itemname, price, username, email, ip)
- VALUES (:itemname, :price, :username, :email, :ip)");
- $set_new_donation->bindValue(':itemname', $full_insert_data[$auction]['itemname'], PDO::PARAM_STR);
- $set_new_donation->bindValue(':price', $full_insert_data[$auction]['bid'], PDO::PARAM_INT);
- $set_new_donation->bindValue(':username', $full_insert_data[$auction]['username'], PDO::PARAM_STR);
- $set_new_donation->bindValue(':email', $full_insert_data[$auction]['email'], PDO::PARAM_STR);
- $set_new_donation->bindValue(':ip', $full_insert_data[$auction]['ip'], PDO::PARAM_STR);
- $set_new_donation->execute();
- if($set_new_donation->rowcount() > 0){
- $this->donationmessages[] = "A new donation has been added. Auction number: ".$auction;
- $this->create_post_meta($auction, "auction_added_status", "added", true);
- }else{
- $this->donationmessages[] = "A new donation has NOT been added. Auction number: ".$auction;
- }
- }else{
- $payamount = 0;
- $this->donationmessages[] = "There were no bids for this auction.";
- }
- }
- }
- }
- }
- }
- private function checkBoughtPayment(){
- $check_payment = $this->db_connection->prepare("SELECT post_id FROM auction WHERE meta_key = 'auction_bought_status' AND meta_value = 'bought' GROUP BY post_id");
- $check_payment->execute();
- if($check_payment->rowcount() == 0){
- return true; //there are NO active auctions, return false
- }
- return false; //there are activeauctions, return false
- }
- private function checkList(){ //check if there are any active auctions
- $check_list = $this->db_connection->prepare("SELECT ID FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE meta_key = 'wdm_listing_ends' AND meta_value > NOW()");
- $check_list->execute();
- if($check_list->rowcount() == 0){
- return true; //there are NO active auctions, return false
- }
- return false; //there are activeauctions, return false
- }
- private function getNewPostMeta(){
- if($this->AuthFunction() == true){
- //retrieve the post meta from the list of new auctions
- $getauction = $this->db_connection->prepare('SELECT * FROM wp_wdm_newlist WHERE status = 0 AND listingstarts < now()');
- $getauction->execute();
- if($getauction->rowcount() > 0){
- $this->auctionmessages[] = "A new auction has been retrieved";
- return $getauction->fetch(PDO::FETCH_ASSOC);
- }else{
- $this->auctionmessages[] = "There are no new auctions on the list";
- return false;
- }
- }
- }
- private function setNewPost(){ //create new auction
- if($this->AuthFunction() === true){
- $newdata = $this->getNewPostMeta();
- if($newdata != false){
- $set_new_post = $this->db_connection->prepare("INSERT INTO wp_posts
- (post_title, post_content, post_type, post_status, post_excerpt, post_date, post_date_gmt, post_modified, post_modified_gmt)
- VALUES(:title, :content, 'ultimate-auction', 'publish', :excerpt, now(), now(), now(), now())");
- $set_new_post->bindValue(':title', $newdata['title'], PDO::PARAM_STR);
- $set_new_post->bindValue(':content', $newdata['description'], PDO::PARAM_STR);
- $set_new_post->bindValue(':excerpt', $newdata['description_small'], PDO::PARAM_STR);
- $set_new_post->execute();
- $postid = $this->db_connection->lastInsertId();
- if($set_new_post->rowcount()>0){
- $this->auctionmessages[] = "New auction post has been added to the list";
- $this->setNewPostMeta($postid, $newdata);
- }else{
- $this->auctionmessages[] = "New auction post has NOT been added to the list";
- }
- }
- }
- }
- private function setNewPostMeta($post_id, $newdata){
- if($this->AuthFunction() === true){
- $salt = $this->createUID();
- $salt2 = $salt . $this->createUID();
- $authkey = array('wdm-auth-key',md5($salt2)); //create random auth key
- $wdmimage1 = array('wdm-image-1', $newdata['image1']);
- $wdmimage2 = array('wdm-image-2', $newdata['image2']);
- $wdmimage3 = array('wdm-image-3', $newdata['image3']);
- $wdmimage4 = array('wdm-image-4', $newdata['image4']);
- $mainimage = array('wdm-main-image', $newdata['mainimage']);
- $listingends = array('wdm_listing_ends',date('Y-m-d H:i:s',(time() +$newdata['listingends'] * 60 * 60 * 24)));
- $openingbid = array('wdm_opening_bid',$newdata['openingbid']);
- $lowestbid = array('wdm_lowest_bid',$newdata['lowestbid']);
- $incremental = array('wdm_incremental_val', $newdata['incrementval']);
- $paymentmethod = array('wdm_payment_method', $newdata['paymentmethod']);
- $biddingengine = array('wdm_bidding_engine', $newdata['biddingengine']);
- $auctionthumb = array('wdm_auction_thumb', $newdata['auctionthumb']);
- $currentauclink = array('current_auction_permalink', $_SERVER['HTTP_HOST'].'/?ult_auc_id='.$post_id);
- $fulldata = array($authkey,$wdmimage1,$wdmimage2,$wdmimage3,$wdmimage4,$lowestbid,$mainimage,$listingends,$openingbid,$incremental,$paymentmethod,$biddingengine,$auctionthumb,$currentauclink);
- $successcounter = 0;
- $totalcounter = count($fulldata) + 1;
- //add post meta
- $new_post_meta = $this->db_connection->prepare("INSERT INTO wp_postmeta
- (post_id, meta_key, meta_value)
- VALUES(:idvar, 'wdm_creation_time', now())");
- $new_post_meta->bindValue(':idvar', $post_id, PDO::PARAM_INT);
- $new_post_meta->execute();
- if($new_post_meta->rowcount()>0){
- $this->metalist[] = "New auction postmeta has been added to the list: creationtime ".date('Y-m-d H:i:s',(time() +$newdata['listingends'] * 60 * 60 * 24));
- $successcounter++;
- }else{
- $this->metalist[] = "New auction postmeta has NOT been added to the list: creationtime ".date('Y-m-d H:i:s',(time() +$newdata['listingends'] * 60 * 60 * 24));
- }
- foreach($fulldata as $singledata){
- $new_post_meta = $this->db_connection->prepare('INSERT INTO wp_postmeta
- (post_id, meta_key, meta_value)
- VALUES(:idvar, :firstvar, :secvar)');
- $new_post_meta->bindValue(':idvar', $post_id, PDO::PARAM_INT);
- $new_post_meta->bindValue(':firstvar', $singledata[0], PDO::PARAM_STR);
- $new_post_meta->bindValue(':secvar', $singledata[1], PDO::PARAM_STR);
- $new_post_meta->execute();
- if($new_post_meta->rowcount()>0){
- $this->metalist[] = "New auction postmeta has been added to the list: ". $singledata[0]. " value: ". $singledata[1];
- $successcounter++;
- }else{
- $this->metalist[] = "New auction postmeta has NOT been added to the list: ". $singledata[0]. " value: ". $singledata[1];
- }
- }
- $this->handleNewAuction($successcounter, $totalcounter, $post_id, $newdata['auction_id']);
- }
- }
- private function handleNewAuction($successcounter, $totalcounter, $post_id, $auction_id){
- if($successcounter != $totalcounter){
- //delete all post meta
- $delete_post_meta = $this->db_connection->prepare('DELETE FROM wp_postmeta WHERE post_id = :id)');
- $delete_post_meta->bindValue(':id', $post_id, PDO::PARAM_INT);
- $delete_post_meta->execute();
- if($delete_post_meta->rowcount() > 0){
- $this->auctionmessages[] = "The post meta has been deleted";
- }else{
- $this->auctionmessages[] = "The post meta has NOT been deleted";
- }
- //delete the post
- $delete_post = $this->db_connection->prepare('DELETE FROM wp_post WHERE ID = :id)');
- $delete_post->bindValue(':id', $post_id, PDO::PARAM_INT);
- $delete_post->execute();
- if($delete_post->rowcount() > 0){
- $this->auctionmessages[] = "The post has been deleted";
- }else{
- $this->auctionmessages[] = "The post has NOT been deleted";
- }
- }else{
- //update the list with new auctions
- $update_new_list = $this->db_connection->prepare('UPDATE wp_wdm_newlist SET status = 1 WHERE auction_id = :id');
- $update_new_list->bindValue(':id', $auction_id, PDO::PARAM_INT);
- $update_new_list->execute();
- if($update_new_list->rowcount() > 0){
- $this->auctionmessages[] = "The list with new auctions has been updated, status was changed";
- }else{
- $this->auctionmessages[] = "The list with new auctions has NOT been updated, status was NOT changed";
- }
- //insert new term relationship
- $new_relation = $this->db_connection->prepare("INSERT INTO wp_term_relationships
- (object_id, term_taxonomy_id, term_order)
- VALUES(:idvar, 2, 0)");
- $new_relation->bindValue(':idvar', $post_id, PDO::PARAM_INT);
- $new_relation->execute();
- if($new_relation->rowcount() > 0){
- $this->auctionmessages[] = "New term relation has been added to the list";
- }else{
- $this->auctionmessages[] = "New term relation has NOT been added to the list";
- }
- }
- }
- public function createForm($auctionid, $uid, $debug){
- return false;
- //outdated, requires some work on the paypal functions
- if(isset($auctionid, $uid)){
- $auctionauthkey = $this->getSettings($auctionid, 'authkey');
- if($auctionauthkey == $uid){
- if($this->debugging == 1){ //set debugging to 0 to use the online version
- $pp_link = "https://www.sandbox.paypal.com/cgi-bin/webscr";
- }else{
- $pp_link = "https://www.paypal.com/cgi-bin/webscr";
- }
- $wdm_paypal_address = $this->getSettings($auctionid, 'getaddress');
- $buy_now_price = $this->getSettings($auctionid, 'buyprice');
- $permalink = 'http://localhost/?ult_auc_id='.$auctionid;
- $buymessage = 'Buy it now for $'. number_format($buy_now_price, 2, '.', ',');
- $post_title = $this->getSettings($auctionid, 'gettitle');
- $currency_code = 'USD';
- }else{
- $this->formDebugMessages[] = 'Unverified params<br>';
- }
- if($debug == 1){
- $this->formDebugList[] = "Retrieved key: ".$auctionauthkey."<br>";
- $this->formDebugList[] = "PP link: ".$pp_link."<br>";
- $this->formDebugList[] = "Paypal address: ".$wdm_paypal_address."<br>";
- $this->formDebugList[] = "Post title: ".$post_title."<br>";
- $this->formDebugList[] = "Buynow: ".$buy_now_price."<br>";
- $this->formDebugList[] = "Permalink: ".$permalink."<br>";
- $this->formDebugList[] = "Buymessage: ".$buymessage."<br>";
- }
- if(isset($pp_link, $wdm_paypal_address, $post_title, $buy_now_price, $currency_code, $permalink, $buymessage)){
- $formdata = '<form action="'. $pp_link. '" method="post" target="_top">';
- $formdata .= '<input type="hidden" name="business" value="'. $wdm_paypal_address.'">';
- $formdata .= '<input type="hidden" name="item_name" value="'. $post_title.'">';
- $formdata .= '<input type="hidden" name="amount" value="'. $buy_now_price.'">';
- $formdata .= '<input type="hidden" name="currency_code" value="'. $currency_code.'">';
- $formdata .= '<input type="hidden" name="return" value="'. $permalink.'">';
- $formdata .= '<input type="submit" value="'. $buymessage.'" id="wdm-buy-now-button">'; //change this button looks
- $formdata .= '<input type="hidden" name="button_subtype" value="services">';
- $formdata .= '<input type="hidden" name="no_note" value="0">';
- $formdata .= '<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">';
- $formdata .= '<input type="hidden" name="cmd" value="_xclick">';
- $formdata .= '<input type="hidden" name="charset" value="utf-8">';
- $formdata .= '</form>';
- return $formdata;
- }else{
- $this->formDebugMessages[] = 'All data not set<br>';
- }
- }else{
- $this->formDebugMessages[] = "Params data not set<br>";
- }
- return FALSE;
- }
- public function checkPaymentParams($uid = NULL){
- if($uid == NULL){
- if(isset($_GET['auctionid'], $_GET['uid'])){
- $auctionid = $_GET['auctionid'];
- $auctionauthkey = $this->getSettings($auctionid, 'authkey');
- if($auctionauthkey != false && $auctionauthkey == $_GET['uid']){
- $post_title = $this->getSettings($auctionid, 'gettitle');
- $image1 = $this->get_post_meta($auctionid, 'wdm-image-1', true);
- $description = $this->getSettings($auctionid, 'getpost2');
- $getlastbid = $this->db_connection->prepare("SELECT bid, name FROM wp_wdm_bidders WHERE auction_id = :idvar ORDER BY bid DESC");
- $getlastbid->bindValue(':idvar', $auctionid, PDO::PARAM_INT);
- $getlastbid->execute();
- $result = $getlastbid->fetch(PDO::FETCH_ASSOC);
- if($getlastbid->rowcount() == 1){
- $formdata = array("title" => $post_title
- , "auctionid" => $auctionid
- , "price" => $result['bid']
- , "image" => $image1
- , "description" => $description
- , "username" => $result['name']);
- return $formdata;
- }
- }
- }
- if(isset($_POST['auctionid'], $_POST['uid'])){
- $auctionid = $_POST['auctionid'];
- $auctionauthkey = $this->getSettings($auctionid, 'authkey');
- if($auctionauthkey != false && $auctionauthkey == $_POST['uid']){
- $getlastbid = $this->db_connection->prepare("SELECT bid, name FROM wp_wdm_bidders WHERE auction_id = :idvar ORDER BY bid DESC");
- $getlastbid->bindValue(':idvar', $auctionid, PDO::PARAM_INT);
- $getlastbid->execute();
- $result = $getlastbid->fetch(PDO::FETCH_ASSOC);
- if($getlastbid->rowcount() == 1){
- return $result = array("price" => $result['bid'], "name" => $result['name']);
- }
- }
- }
- if(isset($_GET['uid'], $_GET['prod'])){
- $auctionid = $_GET['prod'];
- $auctionauthkey = $this->getSettings($auctionid, 'authkey');
- if($auctionauthkey != false && $auctionauthkey == $_GET['uid']){
- $getlastbid = $this->db_connection->prepare("SELECT bid, name FROM wp_wdm_bidders WHERE auction_id = :idvar ORDER BY bid DESC");
- $getlastbid->bindValue(':idvar', $auctionid, PDO::PARAM_INT);
- $getlastbid->execute();
- $result = $getlastbid->fetch(PDO::FETCH_ASSOC);
- if($getlastbid->rowcount() == 1){
- $itemname = $this->getSettings($auctionid, 'gettitle');
- return $result = array("price" => $result['bid'], "name" => $result['name'], 'itemname' => $itemname);
- }
- }
- }
- }else{
- $auctionauthkey = $this->getSettings($uid, 'authkey');
- if($auctionauthkey != false){
- return "auctionpayment.php?auctionid=".$uid."&uid=".$auctionauthkey;
- }
- }
- return false;
- }
- public function getSoldDonations(){ //returns all auctions with a status: 'bought'
- $get_bought_auctions = $this->db_connection->prepare("SELECT post_id FROM wp_postmeta
- WHERE meta_key = 'wdm_listing_ends'
- AND meta_value < now()");
- $get_bought_auctions->execute();
- $data = $get_bought_auctions->fetchAll(PDO::FETCH_ASSOC);
- $returndata = array();
- foreach($data as $postid){
- $get_bids = $this->db_connection->prepare("SELECT post_id FROM wp_postmeta
- WHERE meta_key = 'wdm_listing_ends'
- AND meta_value < now()");
- $get_bids->bindparam(':id', $postid['post_id'], PDO::PARAM_INT);
- $get_bids->execute();
- if($get_bids->rowcount() > 0){
- $returndata[$postid['post_id']] = $postid['post_id'];
- }
- }
- return $returndata;
- }
- private function createUID($length = 100) { //random generator
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ#$%^&';
- $charactersLength = strlen($characters);
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
- private function switchArray($i, $field1, $field2) { //reformats the arrays
- $returndata = array();
- foreach ($i as $z){
- $returndata[$z[$field1]] = $z[$field2];
- }
- return $returndata;
- }
- public function get_post_meta($param, $key, $boolean){
- $get_postmeta = $this->db_connection->prepare("SELECT meta_key, meta_value FROM wp_postmeta
- WHERE meta_key = :inputkey AND post_id = :param");
- $get_postmeta->bindparam(":inputkey", $key, PDO::PARAM_STR);
- $get_postmeta->bindparam(":param", $param, PDO::PARAM_STR);
- $get_postmeta->execute();
- $data = $get_postmeta->fetch(PDO::FETCH_ASSOC);
- return $data['meta_value'];
- }
- public function create_post_meta($param, $metakey, $metavalue,$boolean){
- if($boolean == true){
- $check_postmeta = $this->db_connection->prepare("SELECT * FROM wp_postmeta WHERE post_id = :post_id AND meta_key = :metakey");
- $check_postmeta->bindparam(":post_id", $param, PDO::PARAM_STR);
- $check_postmeta->bindparam(":metakey", $metakey, PDO::PARAM_STR);
- $check_postmeta->execute();
- if($check_postmeta->rowcount() > 0){
- return false;
- }
- }
- $create_postmeta = $this->db_connection->prepare("INSERT INTO wp_postmeta (post_id, meta_key, meta_value) VALUES (:post_id, :metakey, :metavalue)");
- $create_postmeta->bindparam(":post_id", $param, PDO::PARAM_STR);
- $create_postmeta->bindparam(":metakey", $metakey, PDO::PARAM_STR);
- $create_postmeta->bindparam(":metavalue", $metavalue, PDO::PARAM_STR);
- $create_postmeta->execute();
- if($create_postmeta->rowcount() > 0){
- return true;
- }
- return false;
- }
- public function getSettings($param, $type){ //getparams for the buy form
- switch ($type){
- case 'authkey' :
- $data = $this->get_post_meta($param, 'wdm-auth-key', true);
- break;
- case 'buyprice' :
- $data = $this->get_post_meta($param, 'wdm_buy_it_now', true);
- break;
- case 'gettitle' :
- $get_postmeta = $this->db_connection->prepare("SELECT post_title FROM wp_posts
- WHERE ID = :inputkey");
- $get_postmeta->bindparam(":inputkey", $param, PDO::PARAM_STR);
- $get_postmeta->execute();
- $data = $get_postmeta->fetch(PDO::FETCH_ASSOC);
- return $data['post_title'];
- break;
- case 'getpost':
- $get_postmeta = $this->db_connection->prepare("SELECT post_content FROM wp_posts
- WHERE ID = :inputkey");
- $get_postmeta->bindparam(":inputkey", $param, PDO::PARAM_STR);
- $get_postmeta->execute();
- $data = $get_postmeta->fetch(PDO::FETCH_ASSOC);
- return $data['post_content'];
- break;
- case 'getpost2':
- $get_postmeta = $this->db_connection->prepare("SELECT post_excerpt FROM wp_posts
- WHERE ID = :inputkey");
- $get_postmeta->bindparam(":inputkey", $param, PDO::PARAM_STR);
- $get_postmeta->execute();
- $data = $get_postmeta->fetch(PDO::FETCH_ASSOC);
- return $data['post_excerpt'];
- break;
- default :
- $data = false;
- break;
- }
- return $data;
- }
- //messages, call any of these to show them in a list
- public function showAuctionMessages(){
- echo "<h3>Auction Messages</h3>
- <ul>";
- foreach($this->auctionmessages as $message){
- echo "<li>".$message."</li>";
- }
- echo "</ul>";
- echo "<h3>Auction Meta list</h3>
- <ul>";
- foreach($this->metalist as $meta){
- echo "<li>".$meta."</li>";
- }
- echo "</ul>";
- }
- public function showDonationMessages(){
- echo "<h3>Donation Messages</h3>
- <ul>";
- foreach($this->donationmessages as $message){
- echo "<li>".$message."</li>";
- }
- echo "</ul>";
- }
- public function showFormMessages(){
- echo "<h3>Form debug messages</h3>
- <ul>";
- foreach($this->formDebugMessages as $meta){
- echo "<li>".$meta."</li>";
- }
- echo "</ul>";
- echo "<h3>Form debug list</h3>
- <ul>";
- foreach($this->formDebugList as $meta){
- echo "<li>".$meta."</li>";
- }
- echo "</ul>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement