Skip to content

Instantly share code, notes, and snippets.

View iqbalmalik89's full-sized avatar

Muhammad Iqbal iqbalmalik89

  • Karachi, Pakistan
View GitHub Profile
INSERT INTO `entities` (`id`, `entity_name`, `contact_info1`, `contact_info2`, `contact_info3`, `contact_info4`, `status`) VALUES
(1, 'Jason', 'test', 'test', 'test', '', 'enable'),
(2, 'Rashid', 'a', 'a', 'a', 'a', 'disable'),
(3, 'Balmer', 'b', 'b', 'b', 'b', 'disable'),
(4, 'WH Dental Surgeons (Serangoon) Pte Ltd', '33 Seng Kang West Ave', '#03-34', 'The Seletar Mall', 'Singapore 797653', 'enable'),
(5, 'WH Dental Surgeons & Associates (Serangoon) Pte Ltd', '33 Seng Kang West Ave', '#03-34', 'The Seletar Mall', 'Singapore 797653', 'enable'),
(6, 'WH Dental Surgeons', 'Blk 198 Punggol Field', '#02-01', 'Singapore 820198', '', 'enable'),
(7, 'WH Dental & Associates (Punggol) Pte Ltd', 'Blk 198 Punggol Field', '#02-01', 'Singapore 820198', '', 'enable'),
(8, 'WH Dental SUrgeons Pte Ltd', '1 Hougang Street 91', '#01-16/17', 'Hougang 1', 'Singapore 538692', 'enable'),
(9, 'WH Dental & Associates (Hougang) Pte Ltd', '1 Hougang Street 91', '#01-16/17', 'Hougang 1', 'Singapore 538692', 'enable');
<?php
session_start();
if(!isset($_SESSION['prelaunch']) || empty($_SESSION['prelaunch']))
{
header('location:http://airfcl.com/prelaunch');
die();
}
?>
public function getClientIp() {
$ipaddress = '';
if ($_SERVER['HTTP_CLIENT_IP'])
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['HTTP_X_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_X_FORWARDED'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
else if($_SERVER['HTTP_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
1. The event categories are pulled dynamically under "step 1 select category" but the calendar icon is currently hard coded.
A custom field has been added to the event categories taxonomy terms for image upload. We just need you to configure the term
to display uploaded image for categories on front end. I assume this is a quick task.
2. The find events section needs a select element to display sub category names (colin will take care of css styling once you
have implemented)
3. The find events section needs a select element to display event months for filtering (again colin will take care of css
styling once you have implemented)
public function getHeading($headingCode)
{
$data = file_get_contents('https://www.gov.uk/trade-tariff/headings/'.$headingCode.'.json');
// $data = file_get_contents('http://localhost/widget/public/'.$headingCode.'.json');
if(!empty($data))
{
$data = json_decode($data, true);
// echo $this->makeTree(0, $data['commodities']);
// $r = $this->makeRecursive($data['commodities']);
<?php
public function loginUser(Request $request)
{
$email = $request->input('email');
$password = $request->input('password');
$user = User::makeVisible('password')->where('email', $email);
if(!empty($user->count()))
{
$user = $user->toArray();
So on the front end of site users can orders tickets http://wordpress-4836-14042-80482.cloudwaysapps.com/netball-event/england-vs-australia-international-test-series-2/ with the book now functionality
This is build using woocommerce but has additional custom fields added for attendees
http://prntscr.com/bw4z2g
When the order is completed it is processed into the backend under wp-admin > woocommerce > orders
http://prntscr.com/bw4za1
this screenshot shows the orders section and missing attendee details
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 17, 2016 at 03:39 AM
-- Server version: 5.7.10
-- PHP Version: 7.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-79713188-1', 'auto');
ga('send', 'pageview');
</script>
{
"kind": "drive#file",
"id": "0B2LGGwjHVuxONkVtZlBVSk1heHM",
"etag": "\"41zBgiQeVtkERrlow_o1l3GDE3o/MTQ3OTA0MzY3Mzk5Mg\"",
"selfLink": "https://www.googleapis.com/drive/v2/files/0B2LGGwjHVuxONkVtZlBVSk1heHM",
"webContentLink": "https://drive.google.com/uc?id=0B2LGGwjHVuxONkVtZlBVSk1heHM&export=download",
"alternateLink": "https://drive.google.com/file/d/0B2LGGwjHVuxONkVtZlBVSk1heHM/view?usp=drivesdk",
"embedLink": "https://drive.google.com/file/d/0B2LGGwjHVuxONkVtZlBVSk1heHM/preview?usp=drivesdk",
"iconLink": "https://ssl.gstatic.com/docs/doclist/images/icon_11_image_list.png",
"thumbnailLink": "https://lh4.googleusercontent.com/vhCrrr9K_d9aDeZn28zOlCHBkxEe0jbXmEyekAmpVess2oYpWrw6LshCrzI8ABeuVHEqXQ=s220",