OSDN Git Service

Add files via upload
authorKazuki Suzuki Przyborowski <kazuki.przyborowski@gmail.com>
Wed, 25 Nov 2020 08:54:43 +0000 (02:54 -0600)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2020 08:54:43 +0000 (02:54 -0600)
16 files changed:
admin.php
calendar.php
category.php
event.php
forum.php
inc/html5.php
inc/versioninfo.php
index.php
install.php
member.php
messenger.php
profile.php
search.php
subcategory.php
subforum.php
topic.php

index 6896812..4a0a9b1 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -32,7 +32,12 @@ ob_start("idb_suboutput_handler"); ?>
 <script type="text/javascript" src="<?php echo url_maker($exfile['admin'],$Settings['file_ext'],"act=vercheck&vercheck=newtype&redirect=js",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin']); ?>"></script>
 <?php $iWrappers['EXTRALINKS'] = ob_get_clean(); } } } ?>
 <?php
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 1838d40..e7b020c 100644 (file)
@@ -22,7 +22,12 @@ $filewpath = $exfile['calendar'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "create");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index c25c1eb..53aace3 100644 (file)
@@ -24,7 +24,12 @@ if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
 $idbactcheck = array("view", "lowview", "stats");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index a27c9c1..efce5d4 100644 (file)
--- a/event.php
+++ b/event.php
@@ -22,7 +22,12 @@ $filewpath = $exfile['event'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "create", "makeevent");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index b750e17..c5080b5 100644 (file)
--- a/forum.php
+++ b/forum.php
@@ -30,7 +30,12 @@ ob_start("idb_suboutput_handler");
 <link rel="alternate" type="application/rss+xml" title="Forum Topics RSS 2.0 Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=rss&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
 <link rel="alternate" type="application/atom+xml" title="Forum Topics Atom Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=atom&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
 <?php $iWrappers['EXTRALINKS'] = ob_get_clean(); } ?>
-<?php ob_start("idb_suboutput_handler"); ?>
+<?php ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 0621996..7c5e472 100644 (file)
@@ -196,6 +196,7 @@ if(strpos($_SERVER['HTTP_USER_AGENT'], "msie") &&
 <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
 <?php } } $iWrappers['HTTPEQUIV'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
+<meta itemprop="url" property="og:url" content="<?php echo $BoardURL; ?>" />
 <base href="<?php echo $BoardURL; ?>" />
 <?php if($Settings['showverinfo']=="on") { ?>
 <meta name="Generator" content="<?php echo $VerInfo['iDB_Ver_Show']; ?>" />
@@ -205,8 +206,12 @@ ob_start("idb_suboutput_handler"); ?>
 <meta name="Author" content="<?php echo $SettInfo['Author']; ?>" />
 <meta name="Keywords" content="<?php echo $SettInfo['Keywords']; ?>" />
 <meta name="Description" content="<?php echo $SettInfo['Description']; ?>" />
+<meta itemprop="description" property="og:description" content="<?php echo $SettInfo['Description']; ?>" />
+<meta itemprop="description" property="twitter:description" content="<?php echo $SettInfo['Description']; ?>" />
 <meta name="ROBOTS" content="Index, FOLLOW" />
 <meta name="GOOGLEBOT" content="Index, FOLLOW" />
+<meta itemprop="type" property="og:type" content="forum" />
+<meta itemprop="card" property="twitter:card" content="forum" />
 <?php if($Settings['showverinfo']=="on") { ?>
 <!-- generator="<?php echo $VerInfo['iDB_Ver_Show']; ?>" -->
 <?php } if($Settings['showverinfo']!="on") { ?>
index d3fbe82..2276c16 100644 (file)
@@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }\r
 // Version number and date stuff. :P\r
 $VER1[0] = 0; $VER1[1] = 5; $VER1[2] = 3; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];\r
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 910; $GitRevN = "$Id$";\r
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 910; $GitRevN = "$Id: d3fbe829af421d577e5dd7fd8f28d2bfabbf12f3 $";\r
 $SVNDay[0] = 10; $SVNDay[1] = 10; $SVNDay[2] = 2019; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];\r
 $AltName = "DF2k"; $AltName2 = "DF2k"; $RName = "iDB"; $SFName = "IntDB";\r
 $RFullName = "Internet Discussion Boards"; $AltFullName = "Discussion Forums 2k"; $AltGM2k = "Game Maker 2k";\r
index f29df4c..7f20d85 100644 (file)
--- a/index.php
+++ b/index.php
@@ -62,7 +62,12 @@ gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die
 ?>
 
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 60a8418..41616cc 100644 (file)
@@ -175,8 +175,11 @@ foreach($ThemeSet AS $key => $value) {
 require($SetupDir['convert'].'info.php');
 require($SetupDir['setup'].'html5.php');
 $Error = null; $_GET['time'] = false;
+$title_html = htmlentities("Installing ".$VerInfo['iDB_Ver_Show'], ENT_QUOTES, $Settings['charset']);
 ?>
-
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo "Installing ".$VerInfo['iDB_Ver_Show']; ?> </title>
 </head>
 <body>
index 2e97223..c8cec6d 100644 (file)
@@ -26,7 +26,12 @@ if(!in_array($_GET['act'], $idbactcheck))
 { $_GET['act']="login"; }
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 6f92b90..3cadd77 100644 (file)
@@ -22,7 +22,12 @@ $filewpath = $exfile['messenger'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "viewsent", "read", "create", "sendmessage");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 52a091b..b66ddb6 100644 (file)
@@ -22,7 +22,12 @@ $filewpath = $exfile['profile'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "signature", "avatar", "settings", "profile", "userinfo");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 0a2d8d4..6a9f822 100644 (file)
@@ -24,7 +24,12 @@ ob_start("idb_suboutput_handler");
 ?>
 <link rel="search" type="application/opensearchdescription+xml" title="<?php echo $Settings['board_name']." ".$ThemeSet['TitleDivider']; ?> Search" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=opensearch",$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
 <?php $iWrappers['EXTRALINKS'] = ob_get_clean(); 
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index deb7cec..82cc085 100644 (file)
@@ -24,7 +24,12 @@ if(!is_numeric($_GET['id'])) { $_GET['id']="1"; }
 $idbactcheck = array("view", "lowview", "stats");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index 6023f35..3bd0a23 100644 (file)
@@ -30,7 +30,12 @@ ob_start("idb_suboutput_handler");
 <link rel="alternate" type="application/rss+xml" title="SubForum Topics RSS 2.0 Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=rss&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
 <link rel="alternate" type="application/atom+xml" title="SubForum Topics Atom Feed" href="<?php echo url_maker($exfile['rss'],$Settings['rss_ext'],"act=atom&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss']); ?>" />
 <?php $iWrappers['EXTRALINKS'] = ob_get_clean(); } ?>
-<?php ob_start("idb_suboutput_handler"); ?>
+<?php ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>
index be652ac..46305c0 100644 (file)
--- a/topic.php
+++ b/topic.php
@@ -23,7 +23,12 @@ $filewpath = $exfile['topic'].$usefileext.$_SERVER['PATH_INFO'];
 $idbactcheck = array("view", "create", "delete", "pin", "unpin", "move", "open", "close", "announce", "edit", "makereply", "editreply", "lowview");
 ?>
 <?php $iWrappers['EXTRALINKS'] = null;
-ob_start("idb_suboutput_handler"); ?>
+ob_start("idb_suboutput_handler");
+$title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
+?>
+<meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
+<meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
+<meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
 ob_start("idb_suboutput_handler"); ?>