1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-04 19:14:41 +00:00

uwuzu v1.4.11 Funium

This commit is contained in:
Daichimarukana
2024-12-29 17:21:14 +09:00
parent b6069366d1
commit 79328e826c
49 changed files with 648 additions and 717 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
<?php
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
$err = "API_has_been_deleted";
+1 -2
View File
@@ -14,8 +14,7 @@ $banurldomainfile = "../../server/banurldomain.txt";
$banurl_info = file_get_contents($banurldomainfile);
$banurl = preg_split("/\r\n|\n|\r/", $banurl_info);
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -14,8 +14,7 @@ $banurldomainfile = "../../server/banurldomain.txt";
$banurl_info = file_get_contents($banurldomainfile);
$banurl = preg_split("/\r\n|\n|\r/", $banurl_info);
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+3 -3
View File
@@ -1,10 +1,8 @@
<?php
require("../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
function random_iv($length = 16){
return substr(str_shuffle('1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'), 0, $length);
}
@@ -60,6 +58,7 @@ if(isset($_GET['migration_code'])) {
$res = $pdo->commit();
} catch(Exception $e) {
$pdo->rollBack();
actionLog($account, "error", "migration-api", null, $e, 4);
}
$newrole = "ice";
$newtoken = "ice";
@@ -87,6 +86,7 @@ if(isset($_GET['migration_code'])) {
// エラーが発生した時はロールバック
$pdo->rollBack();
actionLog($account, "error", "migration-api", null, $e, 4);
}
//メール送信はナシ
//------------
+1 -2
View File
@@ -1,8 +1,7 @@
<?php
require("../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
$mojisizefile = "../server/textsize.txt";
+1 -2
View File
@@ -14,8 +14,7 @@ $banurldomainfile = "../../server/banurldomain.txt";
$banurl_info = file_get_contents($banurldomainfile);
$banurl = preg_split("/\r\n|\n|\r/", $banurl_info);
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -14,8 +14,7 @@ $banurldomainfile = "../../server/banurldomain.txt";
$banurl_info = file_get_contents($banurldomainfile);
$banurl = preg_split("/\r\n|\n|\r/", $banurl_info);
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $domain = $_SERVER['HTTP_HOST'];
require('../../db.php');
require("../../function/function.php");
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -14,8 +14,7 @@ $banurldomainfile = "../../server/banurldomain.txt";
$banurl_info = file_get_contents($banurldomainfile);
$banurl = preg_split("/\r\n|\n|\r/", $banurl_info);
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
+1 -2
View File
@@ -4,8 +4,7 @@ $serversettings_file = "../../server/serversettings.ini";
$serversettings = parse_ini_file($serversettings_file, true);
if(safetext($serversettings["serverinfo"]["server_activitypub"]) === "true"){
header("Content-Type: application/json");
header("charset=utf-8");
header("Content-Type: application/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
$mojisizefile = "../../server/textsize.txt";