0, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Lax' ]); session_start(); session_regenerate_id(true); try { $option = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_MULTI_STATEMENTS => false ); $pdo = new PDO('mysql:charset=utf8mb4;dbname='.DB_NAME.';host='.DB_HOST , DB_USER, DB_PASS, $option); } catch(PDOException $e) { // 接続エラーのときエラー内容を取得する $error_message[] = $e->getMessage(); } //ログイン認証--------------------------------------------------- blockedIP($_SERVER['REMOTE_ADDR']); $is_login = uwuzuUserLogin($_SESSION, $_COOKIE, $_SERVER['REMOTE_ADDR'], "admin"); if($is_login === false){ header("Location: ../index.php"); exit; }else{ $userid = safetext($is_login['userid']); $username = safetext($is_login['username']); $loginid = safetext($is_login["loginid"]); $role = safetext($is_login["role"]); $sacinfo = safetext($is_login["sacinfo"]); $myblocklist = safetext($is_login["blocklist"]); $myfollowlist = safetext($is_login["follow"]); $is_Admin = safetext($is_login["admin"]); } $notiQuery = $pdo->prepare("SELECT COUNT(*) as notification_count FROM notification WHERE touserid = :userid AND userchk = 'none'"); $notiQuery->bindValue(':userid', $userid); $notiQuery->execute(); $notiData = $notiQuery->fetch(PDO::FETCH_ASSOC); $notificationcount = $notiData['notification_count']; if( !empty($_POST['btn_submit']) ) { $N_MAIL_ONOFF = safetext($_POST['mailchks_onoff']); $N_MAIL_ADDS = safetext($_POST['N_MAIL_ADDS']); $N_MAIL_HOST = safetext($_POST['N_MAIL_HOST']); $N_MAIL_PORT = safetext($_POST['N_MAIL_PORT']); $N_MAIL_USER = safetext($_POST['N_MAIL_USER']); $N_MAIL_PASS = safetext($_POST['N_MAIL_PASS']); $N_MAIL_SSL_ = safetext($_POST['ssl_tls_none']); $New_Mail_Settings = " "; //設定上書き $file = fopen('plugin_settings/phpmailer_settings.php', 'w'); $data = $New_Mail_Settings; fputs($file, $data); fclose($file); //---------------------------------------------------------------------- $N_AIBWM_ONOFF = safetext($_POST['aibwmchk_onoff']); $New_AIBWM_Settings = " "; //設定上書き $file = fopen('plugin_settings/aiblockwatermark_settings.php', 'w'); $data = $New_AIBWM_Settings; fputs($file, $data); fclose($file); //---------------------------------------------------------------------- $N_AMS3_CHKS = safetext($_POST['ams3chk_onoff']); $N_AMS3_BASE_URLS = safetext($_POST['N_AMS3_BASE_URLS']); $N_AMS3_BUCKET_NM = safetext($_POST['N_AMS3_BUCKET_NM']); $N_AMS3_PREFIX_NM = safetext($_POST['N_AMS3_PREFIX_NM']); $N_AMS3_ENDPOINTS = safetext($_POST['N_AMS3_ENDPOINTS']); $N_AMS3_REGION_NM = safetext($_POST['N_AMS3_REGION_NM']); $N_AMS3_ACCESSKEY = safetext($_POST['N_AMS3_ACCESSKEY']); $N_AMS3_SECRETKEY = safetext($_POST['N_AMS3_SECRETKEY']); $N_AMS3_IS_S3FPS_ = safetext($_POST['N_AMS3_IS_S3FPS_']); $New_AMS3_Settings = " "; //設定上書き $file = fopen('plugin_settings/amazons3_settings.php', 'w'); $data = $New_AMS3_Settings; fputs($file, $data); fclose($file); $url = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header("Location:".$url.""); exit; } if( !empty($_POST['testmail_send_btn_submit']) ) { $test_mail_adds = safetext($_POST['test_sender_adds']); $mail_title = "Test email"; $mail_text = "これはuwuzuのテストメールです。 問題なく受信できていますか?"; $error_message = send_html_mail($test_mail_adds,$mail_title,$mail_text,"../"); } /* $plugin_chk_result = glob('../plugin/*'); $plugin_data = array(); foreach ($plugin_chk_result as $plugin_path) { if (file_exists($plugin_path . "/plugin_config.json")) { $plugin_conf = json_decode(file_get_contents($plugin_path . "/plugin_config.json"), true); if ($plugin_conf) { $plugin_data[] = array( "name" => $plugin_conf["name"], "version" => $plugin_conf["version"], "author" => $plugin_conf["author"], "description" => $plugin_conf["description"] ); } } } */ require('../logout/logout.php'); ?> プラグイン - <?php echo safetext($serversettings["serverinfo"]["server_name"]);?>

プラグイン

PHPMailerなどとの連携が可能です。

自動メールプラグイン

PHPMailerと連携し、パスワードリセット時やログイン通知などを自動送信することができます。
SMTP送信のみ対応です。
pluginフォルダに解凍済みのPHPMailerのファイル一式が入っていることが必須要件になります。
plugin/PHPMailer/README.MDなど一式

自動メールプラグインのオンオフ

PHPMailer - メールサーバー設定

メールアドレス
ホスト名
ポート番号
ユーザー名
パスワード
暗号化設定
> > >

AIBlockWaterMarkプラグイン

AI学習対策に、ユーザー単位で画像に透かしを自動挿入できるプラグインです。pluginフォルダに解凍済みのAIBlockWaterMarkのファイル一式が入っていることが必須要件になります。
plugin/AIBlockWaterMark/README.MDなど一式

AIBlockWaterMarkのオンオフ


オブジェクトストレージプラグイン

Amazon S3及びAmazon S3互換オブジェクトストレージが使用できるようになるプラグインです。pluginフォルダに解凍済みのAWS SDK for PHPのファイル一式が入っていることが必須要件になります。
plugin/aws/README.MDなど一式

オブジェクトストレージのオンオフ

オブジェクトストレージ - 保存先設定

BaseURL
Bucket
Prefix
Endpoint
Region
Access Key
Secret Key
s3ForcePathStyle設定
checked/>

メールテスト送信