-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kaway404
committed
Dec 4, 2017
1 parent
9ff12bd
commit ab6a832
Showing
12 changed files
with
1,893 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,8 @@ | |
height: 100%; | ||
background: #141414; | ||
right: 0; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
} | ||
|
||
.baka{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 3.2.4 | ||
-- http://www.phpmyadmin.net | ||
-- | ||
-- Host: localhost | ||
-- Generation Time: Feb 21, 2011 at 04:39 PM | ||
-- Server version: 5.1.41 | ||
-- PHP Version: 5.3.1 | ||
|
||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | ||
|
||
/*!40101 SET NAMES utf8 */; | ||
|
||
-- | ||
-- Database: `test_paypal` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `payments` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `payments` ( | ||
`id` int(6) NOT NULL AUTO_INCREMENT, | ||
`txnid` varchar(20) NOT NULL, | ||
`payment_amount` decimal(7,2) NOT NULL, | ||
`payment_status` varchar(25) NOT NULL, | ||
`itemid` varchar(25) NOT NULL, | ||
`createdtime` datetime NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; | ||
|
||
-- | ||
-- Dumping data for table `payments` | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
// functions.php | ||
function check_txnid($tnxid){ | ||
global $link; | ||
return true; | ||
$valid_txnid = true; | ||
//get result set | ||
$sql = mysql_query("SELECT * FROM `netflix_payments` WHERE txnid = '$tnxid'", $link); | ||
if ($row = mysql_fetch_array($sql)) { | ||
$valid_txnid = false; | ||
} | ||
return $valid_txnid; | ||
} | ||
|
||
function check_price($price, $id){ | ||
$valid_price = false; | ||
|
||
$sql = mysql_query("SELECT amount FROM `products` WHERE id = '$id'"); | ||
if (mysql_num_rows($sql) != 0) { | ||
while ($row = mysql_fetch_array($sql)) { | ||
$num = (float)$row['amount']; | ||
if($num == $price){ | ||
$valid_price = true; | ||
} | ||
} | ||
} | ||
return $valid_price; | ||
return true; | ||
} | ||
|
||
function updatePayments($data){ | ||
global $link; | ||
|
||
if (is_array($data)) { | ||
$sql = mysql_query("INSERT INTO `payments` (txnid, payment_amount, payment_status, itemid, createdtime) VALUES ( | ||
'".$data['txn_id']."' , | ||
'".$data['payment_amount']."' , | ||
'".$data['payment_status']."' , | ||
'".$data['item_number']."' , | ||
'".date("Y-m-d H:i:s")."' | ||
)", $link); | ||
$form2['expirado'] = date('Y-m-d H:i:s', strtotime('+43800 min')); | ||
if( DBUpdate( 'user', $form2 ) ){ | ||
echo 'sucesso ao adicionar premium'; | ||
} | ||
return mysql_insert_id($link); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.