示例#1
0
} else {
    if ($social->isRaw()) {
        echo $text;
    } else {
        ?>
<html>
<head>
<link rel="stylesheet" href="<?php 
        echo RingsideWebConfig::$webRoot;
        ?>
/css.php/ringside.css" type="text/css" />
</head>
<body>

<div style="background-color: white; color: #222; width: 711px; padding: 4px"><?php 
        if ($social->getError() != null) {
            if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                $_POST['social.error'] = $social->getError();
            } else {
                $_GET['social.error'] = $social->getError();
            }
            echo $social->render('canvas', null, 'error', '');
        } else {
            echo $text;
        }
        ?>

<div class="footer embed"><a style="float: left; display: block;" href="http://www.ringsideneteworks.com">Powered by Ringside Networks</a>
<?php 
        if ($inSession) {
            ?>
示例#2
0
} else {
    $path_parts = explode('/', trim($pathInfo), 3);
    $canvas = $path_parts[1];
    if (isset($path_parts[2])) {
        $pathInfo = $path_parts[2];
    } else {
        RingsideWebUtils::redirect(ltrim($pathInfo, '/') . '/' . ($_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : ''));
        return;
    }
    $pathInfo = ltrim($pathInfo, "/");
}
if ($inSession === false) {
    $left = array();
} else {
    $left = array();
}
$top = 'menu';
// This is the same list as is used inside $social->render, below. Hopefully this will be cached soon so there will only be one actual round-trip to the API server.
$canvas_content = $social->render('canvas', null, $canvas, $pathInfo);
$error = $social->getError();
$iframe = $social->getIFrame();
if ($social->getRedirect() != null) {
    RingsideWebUtils::redirect($social->getRedirect());
} else {
    // Social pages get RAW others get TEMPLATE
    if ($social->isRaw()) {
        echo $canvas_content;
    } else {
        include 'oneapp.inc';
    }
}