Skip to content

Instantly share code, notes, and snippets.

@sunlee-newyork
sunlee-newyork / dashboard.php
Created November 16, 2013 21:34
Website NONAME / DASHBOARD
<?php
error_reporting(E_ERROR);
session_start();
if (! isset($_SESSION["user"])) {
header("Location: /IDEA/login/index.php");
}
if ($_GET["cmd"] == "logout") {
session_unset();
@sunlee-newyork
sunlee-newyork / activate.php
Created November 16, 2013 21:33
Website NONAME / ACTIVATE
<?php
session_start();
if (isset($_SESSION["user"])) {
header("Location: /IDEA/dashboard/index.php");
}
?>
@sunlee-newyork
sunlee-newyork / login.php
Created November 16, 2013 21:33
Website NONAME / LOGIN
<?php
session_start();
if (isset($_SESSION["user"])) {
header("Location: /IDEA/dashboard/index.php");
} elseif (isset($_SESSION["notvalid"])){
header("Location: /IDEA/activate/index.php");
}
?>
@sunlee-newyork
sunlee-newyork / signup.php
Created November 16, 2013 21:32
Website NONAME / SIGNUP
<html>
<head>
<style>
#title {
margin-top:100px;
font-family:HelveticaNeue-Light;
font-size:25px;
text-align:center;
}
#form {
@sunlee-newyork
sunlee-newyork / search.php
Created November 16, 2013 21:30
Website NONAME / SEARCH
<html>
<head>
<title>SEARCH</title>
<?php require $_SERVER["DOCUMENT_ROOT"]."/IDEA/header/index.php"; ?>
<style>
#title {
font-family:HelveticaNeue-Light;
font-size:35px;
text-align:center;
class Cyoza
def initialize
start_game
end
def type(string)
sleep 0.5
string.each_char {|x| print x ; sleep 0.05 ; $stdout.flush}
end
class Cyoza
def initialize
start_game
end
def start_game
(1..100).each do |x|
if x % (15) == 0
puts "fizzbuzz"
elsif x % 3 == 0
puts "fizz"
elsif x % 5 == 0
puts "buzz"
else puts x
end
end
class Cyoza
def initialize
start_game
end
def start_game
require "CYOZA130101b"
while true
Cyoza.new
end