[TrinityCore/MangosWeb 3.0.1] Donation page doesn't load. menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Divine240's Avatar Private
    Reputation
    1
    Join Date
    May 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [TrinityCore/MangosWeb 3.0.1] Donation page doesn't load.

    Recently i've got my TrinityCore server public and downloaded a nice CMS from MangosWeb that supports Trinitycore. Fixed everything except for one thing, somehow i can't make the donation page load. It stay's blank.

    This is the current script i'm using. (It was in the CMS)

    PHP Code:
    <?php
    //========================//
    if(INCLUDED !== TRUE
    {
        echo 
    "Not Included!"
        exit;
    }
    $pathway_info[] = array('title' => $lang['donate'], 'link' => '');
    // ==================== //

    // We define not to cache the page
    define("CACHE_FILE"FALSE);

    //    ************************************************************
    // Users must be logged in

    if($Account->isLoggedIn() == FALSE)
    {
        
    redirect('?p=account&sub=login',1);
    }

    // Enter the page descrition
    $PAGE_DESC $lang['donate_desc'];

    // Include the paypal class
    include('core/lib/class.paypal.php');
    $Paypal = new Paypal;

    // Get an array of all donate packages
    $donate_packages $DB->select("SELECT * FROM `mw_donate_packages`");

    function 
    confirmPayment()
    {
        global 
    $DB$user$lang;
        
    $pay $DB->selectRow("SELECT * FROM `mw_donate_transactions` WHERE `account`='".$user['id']."' AND `item_given`='0' LIMIT 1");
        if(
    $pay == FALSE)
        {
            
    output_message('validation'$lang['donate_no_trans']);
            echo 
    '<br /><br /><center><b><u>Redirecting...</u></b></center> <meta http-equiv=refresh content="8;url=?p=donate">';
        }
        else
        {
            if(
    $pay['payment_status'] == 'Completed')
            {
                
    $item $DB->selectRow("SELECT * FROM `mw_donate_packages` WHERE `id`='".$pay['item_number']."'");
                if(
    $item['cost'] > $pay['amount'])
                {
                    
    output_message('error'$lang['donate_not_face_value']);
                }
                else
                {
                    
    $DB->query("UPDATE `mw_donate_transactions` SET `item_given`='1' WHERE `account`='".$user['id']."' AND `id`='".$pay['id']."' LIMIT 1");
                    
    $DB->query("UPDATE `mw_account_extend` SET 
                        `web_points` = (`web_points` + "
    .$item['points']."),
                        `points_earned` = (`points_earned` + "
    .$item['points']."),
                        `total_donations` = (`total_donations` + "
    .$pay['amount'].")
                      WHERE `account_id`='"
    .$user['id']."'");
                    
    output_message('success'$lang['donate_points_given']);
                }
            }
            else
            {
                
    output_message('warning'$lang['donate_status_not_complete']);
            }
        }
    }
    ?>

    Any way for me to solve this? Thanks!

    [TrinityCore/MangosWeb 3.0.1] Donation page doesn't load.

Similar Threads

  1. [Guide] Donation Page [Noob Friendly]
    By bulletzaredeadly in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 10-29-2008, 09:10 PM
  2. [Request] Donation page and a php vote popup
    By *Alexz* in forum World of Warcraft Emulator Servers
    Replies: 19
    Last Post: 03-17-2008, 09:05 PM
  3. Donated but doesn't show I did
    By Suplol in forum World of Warcraft General
    Replies: 6
    Last Post: 12-31-2007, 04:49 PM
  4. Donation Page
    By IcyHot in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-08-2007, 08:41 AM
All times are GMT -5. The time now is 06:54 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search