First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
$ValidAccess = 2010;
|
||||
|
||||
include "db.php";
|
||||
require_once("include/template.php");
|
||||
require_once("include/school-functions.php");
|
||||
|
||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
||||
session_name($sessionName);
|
||||
session_start();
|
||||
if (!isset($sessionID)) $sessionID = session_id();
|
||||
}
|
||||
|
||||
|
||||
// Parse parameters
|
||||
if (array_key_exists('sn',$_GET) && strlen($_GET['sn'])) $school_num = intval($_GET['sn']);
|
||||
if (array_key_exists('trxid',$_GET) && strlen($_GET['trxid'])) $trxid = intval($_GET['trxid']);
|
||||
|
||||
if (!isset($school_num) || !isset($trxid)) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Get transaction record
|
||||
if (isset($trxid) && $trxid > 0) {
|
||||
$r = db_query("SELECT * FROM user_exact_transactions WHERE record_num = $trxid");
|
||||
$trx_record = db_fetch_assoc($r);
|
||||
$trxMsg = $trx_record['trx_msg'];
|
||||
$exact_ctr = $trx_record['exact_ctr'];
|
||||
}
|
||||
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$templatePageTitle = getLanguageText('TEXT-PAYMENT-STATUS');
|
||||
$headerArgs = "";
|
||||
|
||||
|
||||
$r = db_query("SELECT * FROM schools WHERE record_num = $school_num");
|
||||
$school_record = db_fetch_assoc($r);
|
||||
|
||||
$school_name = $school_record['school_name'];
|
||||
$url = $school_record['url'];
|
||||
echo($school_name);
|
||||
|
||||
$base_school_num = $school_num;
|
||||
switch ($school_record['reseller']) {
|
||||
case 'esns':
|
||||
$currentTemplate = "esns.receipt.html";
|
||||
break;
|
||||
|
||||
case 'duke':
|
||||
$currentTemplate = "duke.receipt.html";
|
||||
break;
|
||||
}
|
||||
$noTitle = true;
|
||||
$templateSchoolRecord = $school_record;
|
||||
$menuInclude = "";
|
||||
$menuInclude = "menu.parent.php";
|
||||
$default_table_width = 900;
|
||||
|
||||
?>
|
||||
<p><strong><?php echo($trxMsg) ?></strong></p>
|
||||
<?php include "form.messages.php"; ?>
|
||||
<table class='content-table'>
|
||||
<tr>
|
||||
<td>
|
||||
<pre><?php echo($exact_ctr); ?></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<a href='http://<?php echo($url) ?>' class='btn btn--primary>'><?php displayLanguageText('TEXT-RETURN-TO-WEB-SITE'); ?></a>
|
||||
</center>
|
||||
<?php
|
||||
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user