Skip to content

Instantly share code, notes, and snippets.

<?php
echo 'yo';
<?php
class Twitter
{
public static function user_id($username)
{
$data = file_get_contents('http://twitter.com/' . $username);
$userId = explode('<div id="user_', $data);
$userId = explode('"', $userId[1]);
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Html head helper methods
*
* @package Layout Module
* @author John Himmelman ([email protected])
*/
class Head
{
protected static $stylesheets = array();
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Abstract controller class for automatic templating and view mapping.
*
* @package Controller
* @author John Himmelman ([email protected])
*/
abstract class Controller_ViewMapper_Cache extends Controller_ViewMapper
{
public $use_cache = FALSE;
<?php
include dirname(__FILE__) . '/../BucketsManagement/Main.class.php';
class FeaturedContentManagement extends BucketsManagement
{
protected $daos = array(
'GameDAO',
'ResourceDAO',
'AssetDAO',
<div style="width:758px;height:408px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="758" height="408">
<param name="flashvars" value="var1=the_value&var2=some_value&var3=test">
<param name="movie" value="share-your-story-swf.swf" />
<param name="wmode" value="transparent" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="share-your-story-swf.swf" wmode="transparent" width="758" height="408">
<!--<![endif]-->
<a href="http://get.adobe.com/flashplayer/"><img src="share-your-story-swf-placeholder.jpg" border="0" width="758" height="408"></a>
<!--[if !IE]>-->
<? include 'twitter.php' ?>
<? $tweets = twitter::feed('john2496') ?>
<? foreach ($tweets as $tweet): ?>
<div>
<?=$tweet->text?><br />
<?=date('g:iA', strtotime($tweet->created_at))?> from <?=$tweet->source?><br />
</div>
<? endforeach ?>
<?php
$toEmail = $_REQUEST['friendsEmail'];
$message = $_REQUEST['message'];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($toEmail, 'Check out White Collar – Counterfeit Crackdown', $message, $headers);
<!-- SiteCatalyst code version: H.21.
Copyright 1996-2010 Adobe, Inc. All Rights Reserved
More info available at http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/global/media/js/s_code.js"></script>
<script language="JavaScript" type="text/javascript"><!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
var s_account="avonadvancetechniques"
s.pageName="AdvTech_Home"
s.server=""
We couldn’t find that file to show.