Changeset 100


Ignore:
Timestamp:
12/25/07 22:21:31 (10 years ago)
Author:
csnyder
Message:

Updated for www.scrabutility.com

Location:
scrabutility
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • scrabutility/www/fb.php

    r98 r100  
    22 
    33/** 
    4  *  Facebook interface for scrabutility: puts a lookup tool form on yer short profile 
     4 * Facebook interface for scrabutility: puts a lookup tool form on yer short profile 
    55 */ 
    66 
     
    1717include( LOCAL_ROOT.'/facebook-platform/client/facebook.php' ); 
    1818if ( !is_readable( LOCAL_ROOT.'/fb-config.php' ) ) { 
    19   exit("<a href='http://dots.chxo.com/franklin_quotes/'>You want the web version, since the Facebook version isn't configured.</a><br>Admin, please customize and save fb-config.php-dist in the franklin_quotes/ directory."); 
     19  exit("<a href='http://www.scrabutility.com/'>You want the web version, since the Facebook version isn't configured.</a><br>Admin, please customize and save fb-config.php-dist in the scrabutility/ directory."); 
    2020} 
    2121include( LOCAL_ROOT.'/fb-config.php' ); 
    2222 
    2323if ( $_POST['fb_sig_api_key']!=$fb_apikey ) { 
    24   exit("<a href='http://dots.chxo.com/franklin_quotes/'>You want the web version, since the Facebook version isn't configured.</a><br>Admin, Facebook isn't looking for API Key {$fb_apikey} -- please correct fb-config.php and try again."); 
     24  exit("<a href='http://www.scrabutility.com/'>You want the web version, since the Facebook version isn't configured.</a><br>Admin, Facebook isn't looking for API Key {$fb_apikey} -- please correct fb-config.php and try again."); 
    2525} 
    2626 
     
    3838  $fb->redirect( $fb_callbackurl ); 
    3939} 
    40 // get quote 
    41 $quote = `/usr/games/fortune $quotesdb`; 
    42 // create profile fbml 
    43 $quote_fbml = '<table><tr><td valign="top"><img src="http://dots.chxo.com/franklin_quotes/franklin-cropped.png" style="margin: 2px 8px 18px 0;" width="32" height="32"></td><td valign="top"><h3><q>'.h($quote).'</q></h3><cite>&nbsp;&nbsp;&nbsp;&mdash;Benjamin Franklin</cite></td></tr></table>'; 
    44 $update_fbml = '<div style="text-align: right;"><fb:visible-to-user uid="'.$user.'"><a href="http://apps.facebook.com/franklin_quotes/">Get a new quote.</a></fb:visible-to-user></div>'; 
     40 
     41 
    4542// get profile url 
    4643$profile_url = $fb->get_facebook_url() . '/profile.php#a_'.$fb_appid; 
     
    4845<div style="padding: 20px;"> 
    4946<p>Hello <fb:name uid="<?=h($user)?>" useyou="false" />,</p> 
    50 <p><a href="<?=h($profile_url)?>">Your profile</a> has been updated with a new quote from <a href="<?=h($fb_callbackurl)?>?html=1">Portable Richard's Almanack</a>:</p> 
    51 <blockquote><?=$quote_fbml?></blockquote> 
     47<p><a href="<?=h($profile_url)?>">Your left-hand profile</a> has been updated to include the handy <a href="http://www.scrabutility.com/">Scrabutility Lookup Tool</a>.</p> 
     48<p>Happy hunting!</p> 
    5249<p>&nbsp;</p> 
    53 <p>Display it in good health!</p> 
    54 <p>Don't like it? <a href="http://apps.facebook.com/franklin_quotes/">Load another one</a>.</p> 
    55 <h3><a href="http://www.facebook.com/apps/application.php?id=7536755311">About Portable Richard's Almanack</a>| <a href="http://svn.chxo.com/franklin_quotes/">View Source</a></h3> 
     50<h3><a href="http://www.facebook.com/apps/application.php?id=<?=$fb_appid?>">About Scrabutility Word Lookup</a>| <a href="http://svn.chxo.com/scrabutility/">View Source</a></h3> 
    5651</div> 
    57 <fb:google-analytics uacct="UA-3285066-2" /> 
     52<fb:google-analytics uacct="UA-3285066-3" /> 
    5853<? 
    5954$fb->api_client->profile_setFBML( $quote_fbml.$update_fbml, $user ); 
  • scrabutility/www/footer.html

    r98 r100  
    99</script> 
    1010<script type="text/javascript"> 
    11 var pageTracker = _gat._getTracker("UA-3285066-2"); 
    12 pageTracker._setDomainName("dots.chxo.com"); 
     11var pageTracker = _gat._getTracker("UA-3285066-3"); 
    1312pageTracker._initData(); 
    1413pageTracker._trackPageview(); 
  • scrabutility/www/header.html

    r98 r100  
    55  <title><?=$title?></title> 
    66  <meta http-equiv="content-type" content="text/html; charset=utf-8"> 
    7   <script type="text/javascript" src="scrabble_lists.js"></script> 
    8   <link rel="stylesheet" href="scrabble_lists.css"> 
     7  <script type="text/javascript" src="scrabutility.js"></script> 
     8  <link rel="stylesheet" href="scrabutility.css"> 
    99</head> 
    1010<body id="top"> 
  • scrabutility/www/index.php

    r98 r100  
    1 <?$title="Scrabble_Lists"; $noselector=TRUE;?> 
     1<?$title="Scrabutility"; $noselector=TRUE;?> 
    22<?include('header.html')?> 
    33 
     
    2525<pre>Find: \n<br>Replace with: &lt;/div&gt;\n&lt;div class=&quot;word&quot;&gt;<br></pre> 
    2626<p>The resulting markup was cleaned up, and header and footer includes were added to each file.</p> 
    27 <p>You can view the <a href="http://svn.chxo.com/scrabble_lists/">source code</a>.<br></p> 
     27<p>You can view the <a href="http://svn.chxo.com/scrabutility/">source code</a>.<br></p> 
    2828<blockquote> 
    2929  <address><a href="http://chxo.com/">Chris Snyder</a><br> 
    3030  New York City<br> 
    31   December 15, 2007<br></address> 
     31  December 25, 2007<br></address> 
    3232</blockquote> 
    3333<p>&nbsp;</p> 
Note: See TracChangeset for help on using the changeset viewer.