Skip to content

Commit

Permalink
Minor fix and add done.php file.
Browse files Browse the repository at this point in the history
Change file paths, new translations and minor changes.
Thx dasoldier for report.
  • Loading branch information
u3games committed May 11, 2015
1 parent 2e3fc45 commit 36c7da1
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 25 deletions.
25 changes: 25 additions & 0 deletions done.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<!-- Title -->
<title>U3G | PayPal System</title>

<!-- Meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Lineage 2: PayPal System!">
<meta name="keywords" content="l2, lineage, lineage2, u3games, u3g, u3, paypal, system">
<meta name="author" content="u3games, swarlog">

<!-- Connect -->
<?php
include_once 'common.php';
?>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="100%">
<?php echo $lang['done_1']; ?><br>
<?php echo $lang['done_2']; ?>
</table>
</body>
</html>
12 changes: 6 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta name="author" content="u3games, swarlog">

<!-- Connect -->
<?
<?php
include_once 'common.php';
require "system/config.php";
require "system/connect.php";
Expand All @@ -31,11 +31,11 @@
?>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="600" height="89">
<table cellpadding="0" cellspacing="0" width="100%">
<table border="0" width="100%" id="login">
<tr>
<td align="center">
<?
<?php
if (!isset($_POST['submit']))
{
?>
Expand All @@ -59,7 +59,7 @@
</center>
</form>
</div>
<?
<?php
}

if (isset($_POST['submit']))
Expand Down Expand Up @@ -116,7 +116,7 @@
<input type="hidden" name="notify_url" value="<?php echo $urlipn?>/ipn_coins.php" />

<!-- The return page to which the user is navigated after the donations is complete -->
<input type="hidden" name="return" value="<?php echo $urlthx?>/thankyou.php" />
<input type="hidden" name="return" value="done.php" />

<!-- Signifies that the transaction data will be passed to the return page by POST -->
<input type="hidden" name="rm" value="2" />
Expand Down Expand Up @@ -185,7 +185,7 @@
<input type="hidden" name="notify_url" value="<?php echo $urlipn?>/ipn_coins.php" />

<!-- The return page to which the user is navigated after the donations is complete -->
<input type="hidden" name="return" value="<?php echo $urlthx?>/thankyou.php" />
<input type="hidden" name="return" value="done.php" />

<!-- Signifies that the transaction data will be passed to the return page by POST -->
<input type="hidden" name="rm" value="2" />
Expand Down
3 changes: 3 additions & 0 deletions languages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@
$lang['recallform_5'] = 'Cannot select game sever database.';
$lang['recallform_6'] = 'No connection can be made to the server.';

$lang['done_1'] = 'Thank you for donating, now check donation in your character.';
$lang['done_2'] = 'If the item has not been sent to your character, contact the administration.';

?>
3 changes: 3 additions & 0 deletions languages/es.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@
$lang['recallform_5'] = 'Ha habido un error al intentar conectar con el Game Server.';
$lang['recallform_6'] = 'Ha habido un error al intentar conectar con la Base de Datos';

$lang['done_1'] = 'Gracias por la donación realizada, ahora revisa que el item ha sido enviado al personaje indicado.';
$lang['done_2'] = 'Si no habéis recibido el item, contacte con la administración antes de realizar una nueva donación.';

?>
41 changes: 22 additions & 19 deletions system/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,27 @@
// Here you can find the Paypal ipn simulator https://developer.paypal.com/webapps/developer/applications/ipn_simulator
// NOTICE: IPN simulator will give invalid response back if this is set to 1

// Set to 1 once you're ready to go live
define("USE_SANDBOX", 0);
// Enabled SandBox for test system.
// Set "true" for test and "false" for live.
// Default: true
define("USE_SANDBOX", true);

if (USE_SANDBOX == true)
{
// Test seller account
$myPayPalEmail = 'test.seller@account.com';
$payPalURL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
}
else
{
// Fill your PayPal email below
// This is where you will receive the donations
$myPayPalEmail = 'YourPaypal@Account.com';
$payPalURL = "https://www.paypal.com/cgi-bin/webscr";
}
else
{
// Test seller account
$myPayPalEmail = 'test.seller@account.com';
$payPalURL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
}

// Your paypal ipn's files directory
$urlipn = 'http://yourweb.site/paypalsystem/donate/ipn';

// Your paypal thank you page directory
$urlthx = 'http://yourweb.site/paypalsystem/paypal';
$urlipn = 'system/ipn';

// Define your currency code
// You can find them here https://developer.paypal.com/docs/classic/api/currency_codes/
Expand All @@ -70,13 +69,16 @@
$donatecoinamount4 = 20;
$donatecoinreward4 = 40;

// Turn error reporting on or of (1=on | 0=off)
define("USE_REPORTING", 1);
// Turn error reporting on or of (true=on | false=off)
// Default: true
define("USE_REPORTING", true);

// Enable or Disable Telnet, require config
// Default: 0 (1=on | 0=off )
define("USE_TELNET", 0);
// Enable or Disable Telnet, require config (true=on | false=off )
// Default: false
define("USE_TELNET", true);

// TODO: Enabled reports
// Default: true
if (USE_REPORTING == true)
{
// empty
Expand All @@ -88,8 +90,9 @@

// Use a delay when someone submit a form
// It will give a little bit protection against a brute force attack
// Enable or Disable loading delay: (1=on | 0=off)
define("LOADING_DELAY", 1);
// Enable or Disable loading delay: (true=on | false=off)
// Default: true
define("LOADING_DELAY", true);

// Total delay in seconds
// Default: 3
Expand Down

0 comments on commit 36c7da1

Please sign in to comment.