Example #1
0
function getGameSubscribers($gameID)
{
    $url = Config::getAPIDomain() . "/go_getgamesubscribers.php?query=gamesubscribers&gameid=" . urlencode($gameID);
    if (Config::getDebug()) {
        Config::getLogObject()->log("{$url}", PEAR_LOG_DEBUG);
    }
    $curl = @curl_init($url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $xml = @curl_exec($curl);
    curl_close($curl);
    if ($xml) {
        $document = @simplexml_load_string($xml);
        echo "<h3>Users subscribed to Game</h3>";
        if (!$document) {
            return false;
        }
        echo "<ul>";
        foreach ($document->game as $game) {
            //echo('<li><a href="gocustomizegame.php?gameid=' . $game->gameid . '">' . $game->title . '</a></li>');
            echo '<li><a href="' . Config::getRootDomain() . '/goprofile.php?userid=' . $game->userid . '">' . $game->username . '</a></li>';
        }
    }
    echo "</ul>";
    return;
}
Example #2
0
   central COnfig class
*/
?>
<div id="gofooter">
<p class="logofooter"><a href="<?php 
echo Config::getRootDomain();
?>
">GameOn</a></p>
<p> * Copyright &copy; 2010 Jittr, Inc. All rights reserved. Registration on or use of this site constitutes acceptance of our <a href="<?php 
echo Config::getRootDomain();
?>
/gotos.php" target="_blank">Terms of Service</a> and <a href="<?php 
echo Config::getRootDomain();
?>
/goprivacypolicy.php">Privacy Policy</a>. <span class="pipe">|</span> <a href="<?php 
echo Config::getRootDomain();
?>
/godisclaimer.php" target="_blank">Disclaimer</a>
</p>
<p class="contributions">
   Design by <a href="http://www.jittr.com/about" target="_blank">Jittr, Inc.</a> <span class="pipe">|</span> Powered by <a href="http://www.mongodb.org">MongoDB</a> <span class="pipe">|</span> Hosted by <a href="http://www.dreamhost.com" target="_blank">Dreamhost</a> <span class="pipe">|</span> Web analytics by  <a href="http://www.empiricalpath.com/offer?utm_source=bi&utm_medium=partner&utm_content=footer&utm_campaign=audit">Google Analytics</a>
</p>
</div>
<?php 
echo '<script type="text/javascript" src="' . Config::getJSlib() . '"/>';
echo '<script type="text/javascript" src="' . Config::getJSlibApp() . '"/>';
?>
</body>
</html>

Example #3
0
require_once 'config.class.php';
/* Author: Julio Hernandez-Miyares
   Date: 2009
   Purpose: Head section of the html Document 
   TODO: callback function for output buffering is not currently activated 
*/
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">';
echo '<html lang="en">';
echo '<head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
echo '<meta name="revist-after" content="3 days">';
echo '<meta name="Language" content="en-us">';
echo '<meta name="robots" content="all">';
echo '<meta name="msnbot" content="index, follow">';
echo '<meta name="googlebot" content="index, follow">';
echo '<meta name="allow-search" content="yes">';
echo '<meta name="revisit-after" content="3 Days">';
echo '<meta name="Rating" content="General">';
echo '<meta name="language" content="en">';
echo '<meta name="distribution" content="Global">';
echo '<title>%_PAGETITLE_%</title>';
echo '<link rel="shortcut icon" type="image/x-icon" href="' . Config::getRootDomain() . '/' . Config::getFaviconURL() . '">';
echo '<link rel=StyleSheet href="' . Config::getCommonCSS() . '" type="text/css" media=screen>';
echo '</head>';
function ob_callback($buffer)
{
    global $OB_KEY, $OB_REPLACE;
    $new_buffer = str_replace($OB_KEY, $OB_REPLACE, $buffer);
    return $new_buffer;
}
Example #4
0
        $LOG->log("In oauth flow for FB value of result= " . $oauth);
    }
    $url = "https://graph.facebook.com/me?" . $result;
    if (Config::getDebug()) {
        $LOG->log("Get FB user profile calling url = " . $url);
    }
    $curl = curl_init($url);
    $opts = Facebook::$CURL_OPTS;
    curl_setopt_array($curl, $opts);
    $result = curl_exec($curl);
    curl_close($curl);
    if (Config::getDebug()) {
        $LOG->log("Get FB user profile result= " . $result);
    }
    $rc = insertUserFacebook($result, $oauth);
    header("Location: " . Config::getRootDomain());
}
ob_end_flush();
exit;
//functions
function registerWithSocialNetwork($network)
{
    switch ($network) {
        case "facebook":
            registerWithFacebook();
            break;
        case "twitter":
            registerWithTwitter();
            break;
        case "foursquare":
            registerWithFoursquare();