Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am lightyoruichi on github.
  • I am lightyoruichi (https://keybase.io/lightyoruichi) on keybase.
  • I have a public key ASCU9KE3sJH5JE0mp97q6h30TUQPicz-ZXXNoPS3Y0lg9go

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0">
<id>tag:blogger.com,1999:blog-793760152723073442</id>
<updated>2013-11-24T22:57:43.840+08:00</updated>
<category term="asian girls" />
<category term="asians" />
<category term="bikini" />
<category term="boobs" />
<category term="bra" />
if($form['id'] == 11)
{
//do stuff for the submission of form ID
// Build Lead Table Entries
$reference = $_POST["input_9"]; //Unique ID
$clientdate = (date (“Y-m-d”));
$clienttime = (date (“H:i:s”));
$buyer_email = $_POST["input_3"]; //Email
$ipaddress = $_POST["input_8"]; // Client IP Address
global $wpdb;
<?php
//Plugin Name: Countdown, Redirect
//Description: Just a demo, thus has limitations
new Countdown_Redirect();
class Countdown_Redirect {
@lightyoruichi
lightyoruichi / index.html
Created July 5, 2012 13:57 — forked from pierresauvignon/index.html
Finds the places around you. This is just a proof of concept. Use at your own risks...
<!DOCTYPE html>
<head>
<title>Checkin</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Shows you the places around you">
<meta name="author" content="Pierre Sauvignon for Pollenizer">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
@lightyoruichi
lightyoruichi / facebookapi.php
Created April 19, 2012 09:23
Facebook API stuff
Notes on the facebook api.
1) FB INIT
<div id="fb-root"></div> <!--- MUST be there !-->
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'YOUR_APP_ID', cookie:true,
status:true, xfbml:true
});
</script>
@lightyoruichi
lightyoruichi / search.php
Created March 1, 2012 16:52
Show all tables in a comma separated form
<?php
$con = mysql_connect("127.0.0.1","yourmom","pass"); // host, user, pass
mysql_select_db("fbfriend"); // db name
// Get the search variable from URL
$searchstring = "test" ; // or $_POST['term'] if you're using a search form
//get all the tables from the database test
$q = "show tables";
$r = mysql_query($q);
@lightyoruichi
lightyoruichi / functions.php
Created February 9, 2012 10:22
See which file WP is loading for templates
// this can live in /themes/mytheme/functions.php, or maybe as a dev plugin?
function get_template_name () {
foreach ( debug_backtrace() as $called_file ) {
foreach ( $called_file as $index ) {
if ( !is_array($index[0]) AND strstr($index[0],'/themes/') AND !strstr($index[0],'footer.php') ) {
$template_file = $index[0] ;
}
}
}
$template_contents = file_get_contents($template_file) ;
/*Register*/
/* tabbed list */
ul.tabs_login {
padding: 0; margin: 20px 0 0 0;
position: relative;
list-style: none;
font-size: 14px;
z-index: 1000;
float: left;
<?php
$wpdb->hide_errors(); nocache_headers();
global $userdata; get_currentuserinfo();
if(!empty($_POST['action'])){
require_once(ABSPATH . 'wp-admin/includes/user.php');
require_once(ABSPATH . WPINC . '/registration.php');
check_admin_referer('update-profile_' . $user_ID);