Ejemplo n.º 1
0
<?php

require '../function.php';
$appRunnning = WaApp::GetAppRunning();
if (!$appRunnning) {
    header('Location: ./error.html');
    die(0);
} else {
    header('Content-Type: text/html; charset=UTF-8');
    $appName = WaApp::GetAppName();
    $appDesc = WaApp::GetAppDesc();
    ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title><?php 
    echo "{$appName} - {$appDesc}";
    ?>
</title>
<link rel="stylesheet" href="http://lib.sinaapp.com/js/bootstrap/3.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="/page/style.css" />
<?php 
    /*<link rel="stylesheet" href="http://lib.sinaapp.com/js/bootstrap/3.0.0/css/bootstrap-theme.min.css" />*/
    ?>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="http://lib.sinaapp.com/js/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</head>
<body>
<script type="text/javascript" src="/page/index.js"></script>
Ejemplo n.º 2
0
<?php

require '../function.php';
$appRunnning = WaApp::GetAppRunning();
if (!$appRunnning) {
    header('Location: ./error.html');
    die(0);
} else {
    $appName = WaApp::GetAppName();
    $wall = $_GET['wall'];
    ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<?php 
    $err = false;
    try {
        $info = WaWall::GetWallInfo($wall);
        if (!$info) {
            throw new Exception('找不到墙。');
        }
    } catch (Exception $e) {
        $err = $e->getMessage();
    }
    if ($err === false) {
        ?>
<title><?php 
        echo $info['wall_name'] . ' - ' . $appName;
        ?>
</title>
Ejemplo n.º 3
0
<?php

require '../function.php';
$running = WaApp::GetAppRunning();
if (!$running) {
    returnError('暂时不可用,请稍后再试。');
    return;
}
if (strtolower($_SERVER['REQUEST_METHOD']) != 'post') {
    returnError('请求方式错误。');
    die;
}