<h3><strong>UCSC Registration</strong></h3>
        <?php 
//payfor other person check
if (isset($_SESSION['p4o']) && $_SESSION['p4o'] == 1) {
    echo "<div class='text text-info'><strong>You are paying for " . $_SESSION['payeeName'] . ". </strong><button class='btn btn-default btn-xs'><a href='payForOtherRemove.php' title='Click here to remove other person.'>I have changed my mind</a></button></div> ";
}
?>

        <div class="gap">
        <span class="redColor"><strong>* This will not available for undergraduates who already registered with UCSC.</strong></span>
<?php 
$encryptObject = new encrypt();
$tra = new Transaction();
$fileObject = new accessFile();
$dataArray = $fileObject->read('Files/data_UCSCregistration');
$urlArray = $fileObject->read_newLine('Files/URLs');
$user = new User();
$amount = $dataArray[0];
if (!$user->isLoggedIn()) {
    Redirect::to('index.php');
}
$date1 = strtotime($dataArray[1]);
$date2 = time();
$dayLimit = $date1 - $date2;
$dayLimit = floor($dayLimit / (60 * 60 * 24));
if ($dayLimit < 0) {
    //    echo "payment is closed!";
    echo "<div class='alert alert-danger'>Payment is closed.</div>";
} else {
    if ($user->data()->year == 1) {
        //        echo "You have {$dayLimit} days for this payment." . '<br />';
/**
 * Created by PhpStorm.
 * User: lasith-niro
 * Date: 17/10/15
 * Time: 12:21
 */
require_once 'core/init.php';
require 'Files/accessFile.php';
$user = new User();
$fileObject = new accessFile();
$notify = new Notification();
if (!$user->isLoggedIn()) {
    Redirect::to('index.php');
}
$notifyArray = $fileObject->read_newLine('Files/notificationTEXT');
if (Input::exists()) {
    if (Token::check(Input::get('token'))) {
        $validate = new Validate();
        $validation = $validate->check($_POST, array('username' => array('required' => true), 'msgID' => array('required' => true)));
        if ($validation->passed()) {
            //Redirect::to('payForOtherSuccess.php');
            ////Checking if username exists or not////
            //$userId = $user->data()->id;
            $username = Input::get('username');
            $msgCode = Input::get('msgID');
            if (!$username == null) {
                $user2 = new User();
                if ($user->find($username)) {
                    //get user id
                    $uID = $user2->data()->id;
<?php

/**
 * Created by PhpStorm.
 * User: Lasi
 * Date: 12/31/15
 * Time: 11:51 PM
 */
require_once 'core/init.php';
require 'SMS/sms.php';
require 'Files/accessFile.php';
$notification = new smsNotification();
$file = new accessFile();
$randomValue = rand(1000, 9999);
$_SESSION['rSend'] = $randomValue;
$detailArray = $file->read('Files/RouterPhone');
$messageArray = $file->read_newLine('Files/messages');
if (!isset($_POST['sending'])) {
    $pNum = $_SESSION['phone'];
    $to = '94' . substr($pNum, 1, 9);
    $notification->send($detailArray[0], $to, $messageArray[2] . " " . $randomValue, $detailArray[1]);
}
$_SESSION['s3'] = 1;
//to check verification sended or not
Redirect::to('forgetpassCheckPoint.php');
Exemplo n.º 4
0
    <br>
    <div class="jumbotron col-sm-6 col-sm-offset-1">
        <h3><strong>Registration For New Academic Year</strong></h3>
        <?php 
//payfor other person check
if (isset($_SESSION['p4o']) && $_SESSION['p4o'] == 1) {
    echo "<div class='text text-info'><strong>You are paying for " . $_SESSION['payeeName'] . ". </strong><button class='btn btn-default btn-xs'><a href='payForOtherRemove.php' title='Click here to remove other person.'>I have changed my mind</a></button></div> ";
}
?>
        <div class="gap">
<?php 
$encryptObject = new encrypt();
$tra = new Transaction();
$fileObject = new accessFile();
$dataArray = $fileObject->read('Files/data_newAcaYear');
$urlObject = $fileObject->read_newLine('Files/URLs');
$user = new User();
$amount = $dataArray[0];
if (!$user->isLoggedIn()) {
    Redirect::to('index.php');
}
$prefix = 'easyID_';
$lastID = (int) $tra->lastID();
$newID = $lastID + 1;
$transactionID = $tra->encodeEasyID($prefix, $newID);
//echo $transactionID . '<br />';
$merchantCode = 'TESTMERCHANT';
$transactionAmount = $amount;
$returnURL = $urlObject[0];
$Invoice = $encryptObject->encode($merchantCode, $transactionID, $transactionAmount, $returnURL);
//echo $returnURL;