This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>{Title}</title> | |
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description} | |
<link rel="shortcut icon" href="{Favicon}" /> | |
<link rel="apple-touch-icon" href="{PortraitURL-128}"/> | |
<link rel="alternate" type="application/rss+xml" href="http://geceninsarkisi.tumblr.com/rss" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>{Title}</title> | |
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description} | |
<link rel="shortcut icon" href="{Favicon}" /> | |
<link rel="apple-touch-icon" href="{PortraitURL-128}"/> | |
<link rel="alternate" type="application/rss+xml" href="http://geceninsarkisi.tumblr.com/rss" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
//second test | |
$zaman = 'Fri, 01 Jul 2011 16:24:27 +0000'; | |
$dateResult = date( 'y-m-d', strtotime($zaman) ); | |
echo $dateResult; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// source: http://neo22s.com/ | |
function friendly_url($url) { | |
// everything to lower and no spaces begin or end | |
$url = strtolower(trim($url)); | |
//replace accent characters, depends your language is needed | |
//$url=replace_accents($url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//checks if text contains any offensive words, returns boolean. | |
function is_offensive($text){ | |
$data = file_get_contents('http://www.wdyl.com/profanity?q='.$text); | |
$data = json_decode($data); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'twitter.class.php'; // http://svn.strawp.net/lib/twitter.class.php | |
$tw = new TwitterClient(); | |
$users_to_follow = 'batuhanicoz,razyocom,kaloglu,razyocom'; | |
$users = explode(',', $users_to_follow); | |
foreach($users as $user){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Simple Contact Form (Shortcode) | |
Plugin URI: http://beyn.org/ | |
Description: A simple contact form. Usage: [b_form email="send@form.here"] | |
Version: 0.1.1 | |
Author: Barış Ünver | |
Author URI: http://beyn.org/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Mac OS X / Mac OS X Server | |
# The <IfDefine> blocks segregate server-specific directives | |
# and also directives that only apply when Web Sharing or | |
# server Web Service (as opposed to other services that need Apache) is on. | |
# The launchd plist sets appropriate Define parameters. | |
# Generally, desktop has no vhosts and server does; server has added modules, | |
# custom virtual hosts are only activated when Web Service is on, and | |
# default document root and personal web sites at ~username are only | |
# activated when Web Sharing is on. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parsePageSignedRequest() { | |
if (isset($_REQUEST['signed_request'])) { | |
$encoded_sig = null; | |
$payload = null; | |
list($encoded_sig, $payload) = explode('.', $_REQUEST['signed_request'], 2); | |
$sig = base64_decode(strtr($encoded_sig, '-_', '+/')); | |
$data = json_decode(base64_decode(strtr($payload, '-_', '+/'), true)); | |
return $data; | |
} | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'contents'; |
OlderNewer