"hide_php/conf" にファイルをアップロード

このコミットが含まれているのは:
may 2024-04-25 20:29:21 +09:00
コミット c39763d569
2個のファイルの変更10行の追加14行の削除

ファイルの表示

@ -1,6 +1,8 @@
<?php
//掲示板でしか使わない関数。読むのは最後
//セッション復活!
session_start();
//トリップ
function t_key(string $name, string $key){

ファイルの表示

@ -144,27 +144,20 @@ function html_head(string $title, string $description, string $ext_css_file, boo
}
echo $html[1];
}
function html_foot(string $js_file, string $json_ld){
function html_foot(string $js_file, string $extnd){
global $d_root;
global $nonce;
$f = $d_root.'/sqlike/html/foot.html';
if (!file_exists($f)){
exit;
}
if (($js_file === '') && ($json_ld === '')){
include $f;
} else {
if (($js_file !== '') && file_exists($js_file)){
$html = explode('</bo', file_get_contents($f));
echo $html[0];
if (!empty($js_file) && file_exists($js_file)){
echo '<script nonce="'.$nonce.'">';
echo file_get_contents($js_file);
echo '</script>';
}
if (!empty($json_ld)){
echo '<script nonce="'.$nonce.'" type="application/ld+json">{"@context":"http://schema.org",'.$json_ld.'}</script>';
}
echo '</bo'.$html[1];
echo $html[0].'<script nonce="'.$nonce.'">';
include $js_file;
echo '</script></bo'.$html[1];
} else {
include $f;
}
}
@ -176,3 +169,4 @@ function not_found(){
}
exit;
}