This file contains hidden or 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
<?php | |
$url = "http://admin.ariffazmi.my"; | |
/** | |
* | |
*/ | |
class NotUrlException extends Exception |
This file contains hidden or 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
<?php | |
include 'config.php'; | |
if (!isset($_SESSION['id'])) { | |
header("Location: login.php"); | |
} | |
if (isset($_POST['search'])) { | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Contact</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> |
This file contains hidden or 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
<?php | |
require_once 'dbconfig.php'; | |
if (isset($_POST['btn-login'])) { | |
$user = $_POST['username']; | |
$password = $_POST['password']; | |
if($user == '') { | |
$errmsg_arr[] = 'You must enter your Username'; | |
$errflag = true; |
This file contains hidden or 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
<?php | |
include_once 'dbconfig.php'; | |
if (!isset($_SESSION['id'])) { | |
echo '<script>'. 'alert("Please login");'. '</script>'; | |
echo '<script>'. 'window.location.href="login.php";'. '</script>'; | |
} | |
$user_id = $_SESSION['id']; | |
$stmt = $conn->prepare("SELECT * FROM users WHERE id=:user_id"); |
This file contains hidden or 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
sudo apt-get update && upgrade -y | |
sudo apt-get install apache2 -y | |
sudo apt-get install php php-common php-mbstring php-xml -y |
This file contains hidden or 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
JFrame frame=new JFrame("TRAIN TICKET"); | |
frame.setSize(800,600); | |
frame.setLayout(null); | |
frame.setVisible(true); | |
//label | |
JLabel l1 = new JLabel("NAME :"); | |
frame.add(l1); | |
l1.setBounds(50,45,100,60); |
This file contains hidden or 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
public class ThreadingPost { | |
private static final String POST_PARAMS = "TransactionType=SALE&PymtMethod=DD&ServiceID=POS&PaymentID=2d3d2287a9a4680518aa&OrderNumber=2d3d2287a9a4680518aa&Amount=300.00&CurrencyCode=MYR&HashValue=63c82ee2e64b093f73bfa42c1fe0a294fccc2506e7dcabfd4ad30abdece88148&HashValue2=9b50229fbf3d44f5bbc4002986e1dbef28339c9b1f61e155b00effc8f5d45213&TxnID=POS2d3d2287a9a4680518aa&IssuingBank=FPXDB2B&TxnStatus=0&AuthCode=123456&BankRefNo=1912080120490928&RespTime=2019-12-18 20:20:00&TxnMessage=Transaction Successfull"; | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) throws IOException{ | |
for(int i=0; i <= 2; i++) { | |
This file contains hidden or 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
<?php | |
/** | |
* | |
*/ | |
class BillplzAPI | |
{ | |
protected $secret_key; | |
protected $version; | |
protected $collectionID; |
This file contains hidden or 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
<?php | |
/** | |
* | |
*/ | |
class BillplzAPI | |
{ | |
protected $secret_key; | |
protected $version; | |
protected $collectionID; |