[ create a new paste ] login | about

Kalob

Name: Kalob
Email:
Site/Blog: http://www.unadu.com
Location: Canada
Default language: PHP
Favorite languages: php, js
About:

Saved pastes by Kalob:

PHP, pasted on Dec 11:
1
2
3
4
5
<?php
	// check if page is post, or being checked by a malicious user
	if($_SERVER['REQUEST_METHOD']=="POST") {
		// add our db connection & functions for the ajax'd page
		require_once("../inc/load.inc.php");
...
view (55 lines)
PHP, pasted on Dec 10:
1
2
3
4
5
<?php
	// check if page is post, or being checked by a malicious user
	if($_SERVER['REQUEST_METHOD']=="POST") {
		// add our db connection & functions for the ajax'd page
		require_once("../inc/load.inc.php");
...
view (56 lines)
PHP, pasted on Dec 10:
1
2
3
4
5
<?php
	function Post()
	{
		return $_SERVER['REQUEST_METHOD']=="POST";
	}
...
view (89 lines)
PHP, pasted on Dec 10:
1
2
3
4
5
	function UserPic($UID, $w=50, $h=50, $link=1, $b=0, $id=NULL, $css=NULL, $e=NULL) {
		// w = width
		// h = height
		// link = link 2 profile
		// b = border around image - keep as 0
...
view (64 lines, 64 lines of output)
Plain Text, pasted on Dec 4:
1
2
3
4
5
@charset "utf-8";

/* globals */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
...
view (194 lines)
PHP, pasted on Dec 4:
1
2
3
4
5
<?php
	// check if page is post, or being checked by a malicious user
	if($_SERVER['REQUEST_METHOD']=="POST") {
		// add our db connection & functions for the ajax'd page
		require_once("../inc/load.inc.php");
...
view (63 lines)
PHP, pasted on Dec 4:
1
2
3
4
5
<?php
	$pic = mysql_query("SELECT Firstname, Lastname, Sex, Pic FROM Profiles WHERE UID='$MyID'") or die(mysql_error($con));
	if($pic) {
		$fetch = mysql_fetch_array($pic);
		if(!empty($fetch['Pic'])) {
...
view (113 lines)
Plain Text, pasted on Dec 3:
1
2
3
4
5
@charset "utf-8";

/* globals */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
...
view (190 lines)
PHP, pasted on Nov 26:
1
2
3
4
5
<div id='rcTopSpacer' class='mt40'>
</div>
<ul class='navList'>
    <li class='navList navDirect' id='Navcreatevent'>
        <div class='navListIcon' id='NavCreateEvent'>&nbsp;</div><font class='bold darkBlue'>Create Event</font></li>
...
view (20 lines)
Plain Text, pasted on Nov 26:
1
2
3
4
5
        $('.navDirect').click(function() {
                // all elements with the class='navDirect' will look for the same elements id, starting with 'Nav' and the rest will be the redirected page.
                // ie: <div class='navDirect' id='Navhome'></div>, when clicked, will bring you to home.php
                var direction = this.id.replace('Nav', '') + '.php';
                window.location=direction;
...
view (6 lines)
PHP, pasted on Nov 26:
1
2
3
4
5
        	<div id='navNameNPic'>
                <a href='profile.php?id=<?php echo $MyID; ?>'>
                    <img src='<?php echo $My['Pic']; ?>' id='navPic' width='40' height='40' />
                </a>
                <a href='profile.php?id=<?php echo $MyID; ?>'  class='profileLink'><?php echo $My['Firstname'] . " " . $My['Lastname']; ?></a>
...
view (52 lines)
Plain Text, pasted on Nov 26:
1
2
3
4
5
@charset "utf-8";

/* globals */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
...
view (178 lines)
Plain Text, pasted on Nov 26:
1
2
3
4
5
@charset "utf-8";

/* globals */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
...
view (178 lines)
Plain Text, pasted on Nov 23:
1
2
3
4
5
#lContainer { width:1000px; margin:0 auto 0 auto; font-size:12px; }
#leftCol { width:184px; float:left; display:inline-block; clear:both; padding-top:20px; }
#centerCol { width:810px; float:left; border:1px solid #ccc; border-top:0; padding-top:20px; }
#fbContent { width:525px; padding-bottom:40px; min-height:400px; }
#loggedInFooter { width:795px; padding:10px 8px 40px 8px; color:#666; font-size:12px; outline:1px solid white; border-top:1px solid #ccc; background-color:#fff; margin-top:50px; }
...
view (8 lines)
PHP, pasted on Nov 23:
1
2
3
4
5
<?php 	require_once("inc/load.inc.php");
		require_once("libs/fb_functions.php"); // might end up getting loaded twice, that's fine
		
		if(!LoggedIn()) {
			header("location: login.php");
...
view (43 lines, 4 lines of output)
PHP, pasted on Nov 23:
1
2
3
4
5
<?php 	require_once("inc/load.inc.php");
		require_once("libs/fb_functions.php"); // might end up getting loaded twice, that's fine
		
		if(!LoggedIn()) {
			header("location: login.php");
...
view (13 lines)
PHP, pasted on Nov 6:
1
2
3
4
5
<?php
	$pic = mysql_query("SELECT Firstname, Lastname, Sex, Pic FROM Profiles WHERE UID='$MyID'") or die(mysql_error($con));
	if($pic) {
		$fetch = mysql_fetch_array($pic);
		if(!empty($fetch['Pic'])) {
...
view (100 lines)
PHP, pasted on Nov 6:
1
2
3
4
5
<?php 	require_once("inc/load.inc.php");
		require_once("libs/fb_functions.php"); // might end up getting loaded twice
		
		if(!LoggedIn()) {
			header("location: login.php");
...
view (24 lines)
Plain Text, pasted on Nov 6:
1
2
3
4
5
// Our Javascript Library.
$(document).ready(function(){
	function Open(id)
	{
		document.getElementById(id).style.display='block';
...
view (190 lines)
Plain Text, pasted on Nov 6:
1
2
3
4
5
	$('#pageLogo').click(function() {
		window.location = './';
	});
	$('#dropDownNav').click(function() {
		var isOpen = $('#navAccountOpen').val();
...
view (64 lines)
Plain Text, pasted on Nov 6:
1
2
3
4
5
#header { background-color:#3b5998; height:37px; border-bottom:1px solid #133783; -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, .52); width:100%; color:#d8dfea; font-weight:bold; font-size:12px; }
#headerContainer { width:1020px; height:100%; margin:0 auto 0 auto }
#searchBar { display:inline-block; position:relative; top:-13px; margin-top:-10px; background:#FFF; border:1px solid #294a8f; border-top:1px solid #123682; }
#pageLogo { background-image: url(../images/sprite_a.png); background-repeat: no-repeat; background-position: 0 -214px; height: 31px; margin-top: 6px; margin-left:0; float:left; width:104px; cursor:pointer; }
#pageLogo:hover { background-color:#4b67a1; }
...
view (47 lines)
Plain Text, pasted on Oct 28:
1
2
3
4
#popupWindow { z-index:5; position:fixed; margin:125px 33% 0 33%; color:black; border:10px; background-image:url(../images/popup_border.png); border-radius:7px; width:34%; max-width:34%; min-width:400px; padding:10px; display:none; }
#popupTitle { border:1px solid #3b5998; border-bottom:0; background-color:#6d84b4; margin:0; font-weight:bold; color:#FFF; font-size:14px; height:27px; line-height:27px; text-align:left; text-indent:9px; }
#popupContent { background-color:#FFF; color:#000; padding:4px 7px 4px 7px; border:1px solid #555555; border-top:0; border-bottom:1px solid #ccc; font-size:11px; max-height:350px; min-height:50px; overflow:auto; }
#popupFooter { background-color:#f2f2f2; border:1px solid #555555; border-top:0; padding:8px; text-align:right; }
view (4 lines)
Plain Text, pasted on Oct 25:
1
2
3
4
5
// Our Javascript Library.
$(document).ready(function(){
	function Open(id)
	{
		document.getElementById(id).style.display='block';
...
view (125 lines)
Plain Text, pasted on Oct 25:
1
2
3
4
5
	$('#popupClose').click(function(){
		// this is the listener
		popupReset();
	});
	function popupReset() {
...
view (38 lines)
Plain Text, pasted on Oct 25:
1
2
3
4
5
<div id='popupWindow'>
    <div id='popupBody'>
    	<div id='popupTitle'></div>
        <div id='popupContent'></div>
        <div id='popupFooter'>
...
view (9 lines)
PHP, pasted on Oct 22:
1
2
3
4
5
<?php
	if(!isset($_SESSION)) 
		session_start();
		
	unset($_SESSION['UID']);
...
view (11 lines)
PHP, pasted on Oct 22:
1
2
3
4
5
<?php 
	require_once("inc/load.inc.php"); 
	require_once("libs/fb_functions.php");
	if(LoggedIn()) {
		header("Location: home.php");
...
view (25 lines)
PHP, pasted on Oct 16:
1
2
3
4
5
// Our Javascript Library.
$(document).ready(function(){
	function Open(id)
	{
		document.getElementById(id).style.display='block';
...
view (87 lines)
Plain Text, pasted on Oct 16:
1
2
3
4
5
#recover_frame { border:1px solid #ccc; width:515px; height:auto; margin:26px auto 0 auto; padding:20px 21px 32px 21px; border-radius:6px; border-bottom-left-radius:0; border-bottom-right-radius:0; }
#recover_form_email { width:70%; }
#recover_page_footer { height:auto; margin:0 auto 0 auto; font-size:12px; line-height:16px; border:1px solid #ccc; border-top:0; width:535px; padding:5px 11px 5px 11px; background-color:#f2f2f2; border-bottom-left-radius:6px; border-bottom-right-radius:6px; }
#recover_form_container { margin:0 auto 0 auto; width:372px; padding:27px 0 15px 0; width:60%; border-bottom:1px solid #808080; font-size:11px; }
.fleft { float: left; }
...
view (14 lines)
PHP, pasted on Oct 16:
1
2
3
4
5
<?php 	
	require_once("inc/load.inc.php"); 
	require_once("libs/fb_functions.php");
	if(LoggedIn())
	{
...
view (346 lines)
Plain Text, pasted on Oct 12:
1
2
3
4
5
        	<div id='login_frame'>
            	<div id='login_title'>
                	Facebook Login
                </div>
                <?php
...
view (48 lines)
PHP, pasted on Oct 12:
1
2
3
4
5
<?php 	
	require_once("inc/load.inc.php"); 
	require_once("libs/fb_functions.php");
	if(LoggedIn())
	{
...
view (45 lines)
PHP, pasted on Oct 12:
1
2
3
4
5
function LoggedIn()
{
	if(isset($_SESSION['UID']) && $_SESSION['UID']!='')
		return true;
	else
...
view (7 lines)
Plain Text, pasted on Oct 12:
1
2
3
4
5
#login_frame { border:1px solid #ccc; width:616px; height:auto; margin:0 auto 0 auto; padding:20px 21px 32px 21px; border-radius:6px; }
#login_title { color:#1c2a47; font-weight:bold; border-bottom:1px solid #ccc; padding-bottom:10px; margin-bottom:24px; }
#login_error { border:1px solid #dd3c10; background-color:#ffebe8; padding:8px 11px 8px 11px; font-size:11px; margin:0 0 14px 0; line-height:27px; }
#login_error_title { font-weight:bold; color:#333333; font-size:12px; display:block; }
a.redLink:link, a.redLink:visited, a.redLink:active { color:#dd3c10; text-decoration:none; font-size:11px; }
...
view (22 lines)
PHP, pasted on Oct 10:
1
2
3
4
5
<?php require_once("inc/load.inc.php"); ?>
<!DOCTYPE HTML>
<html>
<head>
    <title>Log In | Facebook</title>
...
view (25 lines)
PHP, pasted on Oct 9:
1
2
3
4
5
<?php
	require_once("libs/fb_functions.php");
	if(Post())
	{
		require_once("inc/load.inc.php");
...
view (51 lines)
Plain Text, pasted on Oct 9:
1
2
3
4
5
@charset "utf-8";

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
...
view (52 lines)
Plain Text, pasted on Oct 9:
1
2
3
4
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<noscript> <meta http-equiv="refresh" content="0; URL=/index.php?fb_noscript=1" /> </noscript> 
<meta name="robots" content="noodp,noydir" />
<meta name="description" content="Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet." />
<link rel="shortcut icon" href="images/Icon.ico">
...
view (11 lines)
Plain Text, pasted on Oct 9:
1
2
3
4
5
<?php require_once("inc/load.inc.php"); ?>
<!DOCTYPE HTML>
<html>
<head>
    <title>Welcome to Facebook - Log In, Sign Up or Learn More</title>
...
view (138 lines)
PHP, pasted on Oct 9:
1
2
3
4
5
<?php
	function Post()
	{
		return $_SERVER['REQUEST_METHOD']=="POST";
	}
...
view (18 lines)
Plain Text, pasted on Oct 9:
1
2
3
4
5
// Our Javascript Library.
$(document).ready(function(){
	function Open(id)
	{
		document.getElementById(id).style.display='block';
...
view (78 lines)