Skip to content

Instantly share code, notes, and snippets.

View AriffAzmi's full-sized avatar
🏠
Working from home

AriffAzmi AriffAzmi

🏠
Working from home
View GitHub Profile
<?php
$url = "http://admin.ariffazmi.my";
/**
*
*/
class NotUrlException extends Exception
<?php
include 'config.php';
if (!isset($_SESSION['id'])) {
header("Location: login.php");
}
if (isset($_POST['search'])) {
<!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">
<?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;
<?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");
sudo apt-get update && upgrade -y
sudo apt-get install apache2 -y
sudo apt-get install php php-common php-mbstring php-xml -y
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);
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++) {
<?php
/**
*
*/
class BillplzAPI
{
protected $secret_key;
protected $version;
protected $collectionID;
<?php
/**
*
*/
class BillplzAPI
{
protected $secret_key;
protected $version;
protected $collectionID;