mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 03:24:41 +00:00
uwuzu version 1.2.24
This commit is contained in:
@@ -20,6 +20,8 @@ $serverstopfile = "../server/serverstop.txt";
|
||||
|
||||
$onlyuserfile = "../server/onlyuser.txt";
|
||||
|
||||
$activitypub_file = "../server/activitypub.txt";
|
||||
|
||||
$err404imagefile = "../server/404imagepath.txt";
|
||||
|
||||
$robots = "../robots.txt";
|
||||
@@ -261,6 +263,14 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
fclose($file);
|
||||
}
|
||||
|
||||
$activitypub = $_POST['activitypub'];
|
||||
|
||||
if($activitypub === "true"){
|
||||
$saveactivitypub = "true";
|
||||
}else{
|
||||
$saveactivitypub = "false";
|
||||
}
|
||||
|
||||
|
||||
$serverterms = $_POST['serverterms'];
|
||||
|
||||
@@ -304,6 +314,12 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
fputs($file, $data);
|
||||
fclose($file);
|
||||
|
||||
//ActivityPub
|
||||
$file = fopen($activitypub_file, 'w');
|
||||
$data = $saveactivitypub;
|
||||
fputs($file, $data);
|
||||
fclose($file);
|
||||
|
||||
//利用規約
|
||||
$file = fopen($servertermsfile, 'w');
|
||||
$data = $serverterms;
|
||||
@@ -419,6 +435,20 @@ require('../logout/logout.php');
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>ActivityPubサーバーとして認識されるようにするか</p>
|
||||
<div class="p2">ActivityPubの仮実装をオンにするかです。inboxに入ってきた内容には今現在これといったレスポンスを返しません。<br>また、publicKeyも返却しません。<br>現状ActivityPubサーバーと連合を組むことは出来ません。(リモートユーザーの確認程度なら出来ます。)</div>
|
||||
<div class="switch_button">
|
||||
<?php if(file_get_contents($activitypub_file) === "true"){?>
|
||||
<input id="activitypub" class="switch_input" type='checkbox' name="activitypub" value="true" checked/>
|
||||
<label for="activitypub" class="switch_label"></label>
|
||||
<?php }else{?>
|
||||
<input id="activitypub" class="switch_input" type='checkbox' name="activitypub" value="true" />
|
||||
<label for="activitypub" class="switch_label"></label>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>利用規約</p>
|
||||
<textarea id="serverterms" placeholder="しっかり書きましょう" class="inbox" type="text" name="serverterms"><?php $sinfo = explode("\n", $serverterms); foreach ($sinfo as $info) { echo $info; }?></textarea>
|
||||
|
||||
Reference in New Issue
Block a user