Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions README-OPENMU-POSTGRES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ Admins running OpenMU (modern) who want WebEngine CMS to use OpenMU’s PostgreS

Tip: If you previously used the built‑in PHP server or helper scripts, they are no longer needed. Use XAMPP Apache as above.

## For Linux Systems
1) Enable the Apache mod_rewrite module (sudo a2enmod rewrite)
2) Configure Apache to allow .htaccess overrides (/etc/apache2/apache2.conf)
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
<\/Directory>
3) sudo service apache2 restart



## Fresh Installation (Recommended)
1. Requirements: ensure pdo_pgsql passes.
2. Database Connection (PostgreSQL defaults)
Expand Down
8 changes: 4 additions & 4 deletions includes/config/webengine.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"website_meta_keywords": "OpenMU, MU Online, Season 6, Episode 3, private server, .NET, PostgreSQL, cross-platform, Docker, modern",
"website_forum_link": "https://webenginecms.org/",
"SQL_DB_HOST": "localhost",
"SQL_DB_NAME": "openmu-db-name",
"SQL_DB_NAME": "openmu",
"SQL_DB_2_NAME": "",
"SQL_DB_USER": "postgres",
"SQL_DB_PASS": "postgres-password",
"SQL_DB_PORT": "5432",
"SQL_DB_PASS": "admin",
"SQL_DB_PORT": "5433",
"SQL_USE_2_DB": false,
"SQL_PDO_DRIVER": "3",
"SQL_PASSWORD_ENCRYPTION": "bcrypt",
Expand All @@ -34,7 +34,7 @@
"username_max_len": 10,
"password_min_len": 4,
"password_max_len": 20,
"webengine_cms_installed": true,
"webengine_cms_installed": false,
"cron_api": true,
"cron_api_key": "123456",
"social_link_facebook": "https://facebook.com/",
Expand Down
20 changes: 10 additions & 10 deletions install/sql/openmu/webengine_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS data.webengine_vote_sites (
-- WebEngine Vote Logs
CREATE TABLE IF NOT EXISTS data.webengine_vote_logs (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
account_id UUID REFERENCES data."Account"("Id"),
vote_site_id INTEGER REFERENCES data.webengine_vote_sites(id),
ip_address INET,
voted_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
Expand All @@ -52,8 +52,8 @@ CREATE TABLE IF NOT EXISTS data.webengine_vote_logs (
-- WebEngine Credits Logs
CREATE TABLE IF NOT EXISTS data.webengine_credits_logs (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
character_id UUID REFERENCES data."Character"(id),
account_id UUID REFERENCES data."Account"("Id"),
character_id UUID REFERENCES data."Character"("Id"),
amount INTEGER NOT NULL,
transaction_type VARCHAR(50) NOT NULL, -- 'earned', 'spent', 'admin_add', 'admin_remove'
description TEXT,
Expand All @@ -63,8 +63,8 @@ CREATE TABLE IF NOT EXISTS data.webengine_credits_logs (
-- WebEngine Bans
CREATE TABLE IF NOT EXISTS data.webengine_bans (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
character_id UUID REFERENCES data."Character"(id),
account_id UUID REFERENCES data."Account"("Id"),
character_id UUID REFERENCES data."Character"("Id"),
banned_by VARCHAR(50) NOT NULL,
ban_reason TEXT NOT NULL,
ban_type VARCHAR(20) NOT NULL, -- 'account', 'character', 'ip'
Expand All @@ -86,8 +86,8 @@ CREATE TABLE IF NOT EXISTS data.webengine_blocked_ips (
-- WebEngine PayPal Transactions
CREATE TABLE IF NOT EXISTS data.webengine_paypal_transactions (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
character_id UUID REFERENCES data."Character"(id),
account_id UUID REFERENCES data."Account"("Id"),
character_id UUID REFERENCES data."Character"("Id"),
transaction_id VARCHAR(100) NOT NULL UNIQUE,
amount DECIMAL(10,2) NOT NULL,
currency VARCHAR(3) DEFAULT 'USD',
Expand All @@ -100,7 +100,7 @@ CREATE TABLE IF NOT EXISTS data.webengine_paypal_transactions (
-- WebEngine Password Change Requests
CREATE TABLE IF NOT EXISTS data.webengine_password_requests (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
account_id UUID REFERENCES data."Account"("Id"),
verification_key VARCHAR(100) NOT NULL UNIQUE,
email VARCHAR(255) NOT NULL,
requested_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
Expand All @@ -111,7 +111,7 @@ CREATE TABLE IF NOT EXISTS data.webengine_password_requests (
-- WebEngine Email Verification
CREATE TABLE IF NOT EXISTS data.webengine_email_verification (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
account_id UUID REFERENCES data."Account"("Id"),
verification_key VARCHAR(100) NOT NULL UNIQUE,
email VARCHAR(255) NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
Expand All @@ -122,7 +122,7 @@ CREATE TABLE IF NOT EXISTS data.webengine_email_verification (
-- WebEngine Account Country (for statistics)
CREATE TABLE IF NOT EXISTS data.webengine_account_country (
id SERIAL PRIMARY KEY,
account_id UUID REFERENCES data."Account"(id),
account_id UUID REFERENCES data."Account"("Id"),
country_code VARCHAR(2) NOT NULL,
country_name VARCHAR(100) NOT NULL,
detected_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
Expand Down