コード例 #1
0
ファイル: wall.php プロジェクト: bdbai/wawall-sae
<?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>