比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

...

 SP:/var/www/html/secure/index.phpに2つのPHP文を追加してください。

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

<html>


<head>


↓ヘッダに下のphp部分を追加する


<?php


header("Expires:

Dec,

20

Jul

2010

05:00:00

GMT");


header("Last-Modified:

"

.

gmdate("D,

d

M

Y

H:i:s")

.

"

GMT");


header("Cache-Control:

no-store,

no-cache,

must-revalidate");


header("Cache-Control:

post-check=0,

pre-check=0",

false);


header("Pragma:

no-cache");

?> (中略) <?php $nowt = time(); $strNow =


?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>属性受信の確認ページ</title>
<style type="text/css"> body {

(省略)


パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

(省略)

<div id="maincenter">
<b id="logintitle">属性受信の確認ページ</b><br>
<?php
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ALL ^ E_NOTICE);
print "<b id='loginname'>あなたのIdPは、<". $_SERVER['Shib-Identity-Provider']. ">です。</b><br";
?>
<br>
</div>
<?php
$nowt = time();
$strNow = date("Y年m月d日",

$nowt);


if

(!empty($_SERVER['shadowExpire']))

{


 

 

$expt

=

intval($_SERVER['shadowExpire'])*60*60*24;


 

 

$strExp

=

date("Y年m月d日",

$expt);


 

 

$zant

=

$expt

-

$nowt;


 

 

$zand

=

floor($zant/60/60/24);


 

 

print

"<div

style=\"position:

relative;

top:

85px;\">";


 

 

print

"<h1>現在:$strNow

,";


 

 

print

"期限:$strExp

,";


 

 

print

"残日数:".intval($zand+2)."日間</h1>";


 

 

print

"</div>";


 

 

if

($zand

<

0)

{


 

 

 

 

$errmsg

=

"有効期限を".intval(($zand+1)*-1)."日過ぎています。";


 

 

 

 

header("HTTP/1.1

301

Moved

Permanently");


 

 

 

 

header("Location:

https://ex-sp-testXX.ecloud.nii.ac.jp/secure/error.php?exp=".$strExp."&errmsg=".$errmsg);


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

   

 //↑各自SPのホスト名


 

 

 

 

exit();


 

 

}


}


?>


↑mainテーブルの前に上のphp部分を追加する


<table

id="main"

cellspacing="0"

class="chart">

(中略)



<thead>
<tr>
<th class="chart" width="280">属性</font></th>
<th class="chart" width="420">属性値</font></th>
</tr>

(省略)

 ※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。 

...