Jump to content


donate.php



  • Please log in to reply
No replies to this topic

#1 OFFLINE   Krypto

Krypto

    Project Leader

  • Administrators
  • PipPipPipPipPip
  • 1,582 posts
  • 7 thanks
  • Joined 2 Years, 2 Months and 9 Days

Posted 05 August 2010 - 21:00

Replace your current donate.php with this one.

<?php

/*
*-------------------------------------------------------------------------------*
*----------------    |  ____|        |__   __/ ____|  __         --------------*
*----------------    | |__ _ __ ___  ___| | | (___ | |__) |       --------------*
*----------------    |  __| '__/ _ / _  |  ___ |  ___/        --------------*
*----------------    | |  | | |  __/  __/ |  ____) | |            --------------*
*----------------    |_|  |_|  ___|___|_| |_____/|_|            --------------*
*-------------------------------------------------------------------------------*
*---------------------------    FreeTSP V 1.0   --------------------------------*
*-------------------   The Alternate BitTorrent Source   -----------------------*
*-------------------------------------------------------------------------------*
*-------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify    --*
*--   it under the terms of the GNU General Public License as published by    --*
*--   the Free Software Foundation; either version 2 of the License, or       --*
*--   (at your option) any later version.                                     --*
*--                                                                           --*
*--   This program is distributed in the hope that it will be useful,         --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of          --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           --*
*--   GNU General Public License for more details.                            --*
*--                                                                           --*
*--   You should have received a copy of the GNU General Public License       --*
*--   along with this program; if not, write to the Free Software             --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  --*
*--                                                                           --*
*-------------------------------------------------------------------------------*
*------------   Original Credits to tbSource, Bytemonsoon, TBDev   -------------*
*-------------------------------------------------------------------------------*
*--------  Developed By: Krypto, Fireknight, Subzero, Denno1234, Spook  --------*
*-------------------------------------------------------------------------------*
*-----------------       First Release Date August 2010      -------------------*
*-----------                 http://www.freetsp.info                 -----------*
*------                   �2010 FreeTSP Development Team                  ------*
*-------------------------------------------------------------------------------*
*/


require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'functions'.DIRECTORY_SEPARATOR.'function_main.php');
require_once(INCL_DIR.'function_vfunctions.php');
require_once(INCL_DIR.'function_user.php');

dbconn();
stdhead();

?>

<b>Click one of the buttons below if you wish to make a Donation!</b>

<br /><br />
<?php begin_main_frame(); 
begin_table()?>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick' />
<input type='hidden' name='business' value='<?=$SITEEMAIL?>' />
<input type='hidden' name='item_name' value='<?=$SITENAME?>' />
<input type="hidden" name="item_number" value="<?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type="hidden" name="item_name" value="Donation from <?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type='hidden' name='no_note' value='1' />
<input type='hidden' name='amount' value='5' />
<input type='hidden' name='currency_code' value='USD' />
<input type="hidden" name='tax' value='0' />
<input type="hidden" name="email" value="<?=$CURUSER['email']?>" />
<input type='image' src='<?=$pic_base_url?>donor/5.png' name='submit'
alt='Make payments with PayPal - its fast, free and secure' style='margin-top: 5px' />
<input type="hidden" name="return" value="<?=$BASEURL;?>/donate.php" />
<input type="hidden" name="cancel_return" value="<?=$BASEURL;?>/donate.php" />
</form>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick' />
<input type='hidden' name='business' value='<?=$SITEEMAIL?>' />
<input type='hidden' name='item_name' value='<?=$SITENAME?>' />
<input type="hidden" name="item_number" value="<?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type="hidden" name="item_name" value="Donation from <?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type='hidden' name='no_note' value='1' />
<input type='hidden' name='amount' value='10' />
<input type='hidden' name='currency_code' value='USD' />
<input type="hidden" name='tax' value='0' />
<input type="hidden" name="email" value="<?=$CURUSER['email']?>" />
<input type='image' src='<?=$pic_base_url?>donor/10.png' name='submit'
alt='Make payments with PayPal - its fast, free and secure' style='margin-top: 5px' />
<input type="hidden" name="return" value="<?=$BASEURL;?>/donate.php" />
<input type="hidden" name="cancel_return" value="<?=$BASEURL;?>/donate.php" />
</form>

<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick' />
<input type='hidden' name='business' value='<?=$SITEEMAIL?>' />
<input type='hidden' name='item_name' value='<?=$SITENAME?>' />
<input type="hidden" name="item_number" value="<?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type="hidden" name="item_name" value="Donation from <?=$CURUSER['username'].'-'.$CURUSER['id']?>" />
<input type='hidden' name='no_note' value='1' />
<input type='hidden' name='amount' value='15' />
<input type='hidden' name='currency_code' value='USD' />
<input type="hidden" name='tax' value='0' />
<input type="hidden" name="email" value="<?=$CURUSER['email']?>" />
<input type='image' src='<?=$pic_base_url?>donor/15.png' name='submit'
alt='Make payments with PayPal - its fast, free and secure' style='margin-top: 5px' />
<input type="hidden" name="return" value="<?=$BASEURL;?>/donate.php" />
<input type="hidden" name="cancel_return" value="<?=$BASEURL;?>/donate.php" />
</form>

<?php 
end_table();
end_main_frame(); 
?>

<b>After you have Donated -- make sure to <a href='sendmessage.php?receiver=1'>send us</a> the <font color='red'>transaction id</font> so we can credit your account!</b><br /><br />
<?php
stdfoot();
?>






Also tagged with

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users