Raise your banners and build a realm that endures. Crusades Age is a medieval strategy MMO where you expand towns, manage five core resources, and marshal armies across a sprawling grid map. Train units, climb upgrade trees for weapons, armor, and HP, and weave diplomacy into alliance warfare as you compete for prestige on leaderboards.
Your empire thrives on planning and pace. Queue construction, research academy upgrades, trade through bustling marketplaces, and coordinate multi-front offensives via a clean, templated UI. With integrated forums, premium acceleration, and multi-language support, Crusades Age delivers the classic Devana‑style citybuilding cadence—deep, deliberate, and endlessly replayable.
Game Name: Crusades Age
Genre: Medieval Strategy MMO (Devana Clone)
Technology Stack: PHP (4.x/5.x), MySQL, JavaScript, CSS, Flash (SWF)
Database: MySQL with 24 tables
Total Files: 349 files (3.44 MB)
Architecture: Custom MVC-style with template system
License: Custom (unlicensed redistribution by "
Development Status: Modified Devana clone - development snapshot captured
Installation: Manual (install.php, configuration required)
Historical Context: 2008-2011 era medieval strategy game, part of post-Travian browser MMO wave
Primary Language: Multi-language support (English default, language/ folder system)
Evidence of Use: 5 INSERT statements in database dump (minimal sample/test data)
| File Type | Count | Total Size | Percentage | Purpose |
|---|---|---|---|---|
| .php | 148 | 0.528 MB | 15.3% | Game logic, pages, backend systems |
| .gif | 105 | 0.365 MB | 10.6% | UI icons, building sprites, unit graphics |
| .png | 65 | 1.701 MB | 49.4% | High-quality images, backgrounds, interface |
| .jpg | 14 | 0.221 MB | 6.4% | Photos, promotional graphics |
| .swf | 2 | 0.485 MB | 14.1% | Flash components (animations/UI) |
| .css | 3 | 0.015 MB | 0.4% | Stylesheets |
| .js | 2 | 0.012 MB | 0.3% | JavaScript (func.js, timers) |
| .BAK | 5 | 0.01 MB | 0.3% | Backup files - active development |
| .txt | 3 | 0.001 MB | 0.03% | Documentation (install.txt) |
| .sql.gz | 1 | 0.005 MB | 0.1% | Database schema (compressed) |
| .dat | 1 | 0.103 MB | 3.0% | Map data file |
| TOTAL | 349 | 3.44 MB | 100% | Complete game package |
Analysis: Graphics-heavy distribution (66% images: PNG 49%, GIF 11%, JPG 6%) indicates polished visual presentation. Flash usage (14%) suggests circa 2008-2010 development era. Five .BAK files reveal active development/modification phase. Compressed database (mysql.sql.gz) with minimal INSERT statements (5 total) indicates clean distribution with sample data only.
mysql_* functions, split() instead of explode())template/ folder, CSS-based themes)session_start() in antet.php)ob_start('ob_gzhandler'))`
Crusadesage/
├── include/
│ ├── antet.php # Bootstrap, DB config, session init
│ ├── func.php # 2,278 lines - core game functions
│ ├── meta.php # HTML meta tags
│ └── indexmenu.php # Navigation menu
├── template/
│ ├── css/main.css # Stylesheet
│ └── index/ # Index page assets (menu_sword_right.jpg)
├── language/ # Internationalization
│ ├── en.php # English language file
│ └── ch_lang.php # Language switcher
├── mysql/
│ └── mysql.sql.gz # Database schema (24 tables)
├── admin/ # Admin panel files
├── owner/ # Game owner control panel
├── forum/ # Integrated forum system
├── [130+ game pages] # Core functionality (barracks.php, marketplace.php, etc.)
├── install.php # Installation wizard
├── install.txt # Setup instructions
├── config.php # Owner-only configuration
├── prem.php # Premium system (game points)
├── captcha.php # Anti-bot verification
└── map.dat # Map data file (103 KB)
`
$m=49; $n=49), map.dat data file, coordinate-based town placementg_points.php), resource packs (1k/5k/10k for 2/9/17 points), construction speed boostsCrusadesage is a persistent medieval strategy MMO where players:
$faction[2] determines image folder: 1/, 2/, etc.)$mcost=1.5 multiplier, exponential costs via $r=$faction[3] (faction-specific growth rate)timediff calculations in func.php)sitter field in users table)24 Tables Identified:
| Table | Purpose | Key Features |
|---|---|---|
| users | Player accounts | ID, name, pass (MD5), email, IP, lastVisit, level (admin access), alliance, faction, points (premium currency), sitter |
| towns | Player settlements | Owner, coordinates, buildings (hyphen-delimited: "0-5-3-0-..."), resources, production, limits, army, upgrades (u_upgrades, w_upgrades, a_upgrades) |
| buildings | Building definitions | Type, name, costs, durations, upkeep, output values (faction-specific) |
| units | Unit definitions | Type, name, HP, attack, defense, speed, costs, training time (faction-specific) |
| weapons | Weapon definitions | Separate weapon trading system (marketplace sells weapons) |
| factions | Civilization types | Faction ID, name, image folder, growth rate multiplier ($r) |
| alliances | Player guilds | ID, name, member count, combined stats |
| pacts | Alliance diplomacy | Alliance1, Alliance2, pact type (NAP/war/trade) |
| map | World grid | X, Y coordinates, town ID, terrain type (49x49 grid) |
| c_queue | Construction queue | Town, building, level, completion time |
| u_queue | Unit training queue | Town, unit type, quantity, completion time |
| uup_queue | Unit upgrade queue | Town, unit, upgrade tree (17/18/19), completion time |
| t_queue | Trade/merchant queue | Source, destination, resources, travel time |
| a_queue | Army movement queue | Source, destination, units, arrival time |
| d_queue | Demolition queue | Town, building, completion time |
| w_queue | Unknown queue | (Possibly weapon crafting or wall repairs) |
| messages | Private messages | Sender, recipient, subject, body, sent timestamp |
| reports | Battle reports | Attacker, defender, units lost, resources stolen, timestamp |
| chat | Global chat | User, message, expiration (5-minute lifespan: $system[0]=5) |
| chat_s | Chat statistics | Message counts, user activity |
| forums | Forum categories | Category ID, name, description |
| threads | Forum threads | Category, title, creator, views, replies |
| posts | Forum posts | Thread, author, content, timestamp |
| config | Game settings | Variable name, value (owner-configurable via config.php) |
Database Activity Evidence:
language/ folder with switchable localization (ch_lang.php)$imgs.$fimgs paths allow faction-specific sprites)timediff compensation)where name='".$name."' with only basic clean() function)$query="select * from users where name='".$name."' and pass='".$pass."'"; (func.php:116)clean() function uses strip_tags() + htmlspecialchars() + mysql_real_escape_string() but applied after SQL construction in many cases$_SESSION["user"][2]==md5(clean($_POST["pass"])))mysql_* functions (removed in PHP 7.0, replaced by MySQLi/PDO)split() function (deprecated in PHP 5.3, removed in PHP 7.0) used extensively in prem.php$db_host="your_db_host" (placeholders, but poor practice)mysql_error() exposed to users)// SQL Injection (marketplace.php)
$_GET["town"]=clean($_GET["town"]); // Basic sanitization
check_r($_GET["town"]); // But still used directly in queries
// Deprecated split() (prem.php:4)
$data=split("-", $town[8]); // Should be explode()
// MD5 passwords (func.php:116)
$query="select * from users where name='".$name."' and pass='".$pass."' and level>0";
// $pass is MD5 hash stored in DB
// Direct $_GET usage in queries
if (isset($_GET["target"])) { $target=town($_GET["target"]); }
Overall Code Quality: 3.5/10
Showstoppers:
mysql_* functions cause fatal errors (PHP 7.0 removed these)split() Function: Removed in PHP 7.0, breaks resource parsing in prem.php and dozens of other filesPath to Modernization:
mysql_* → MySQLi, split() → explode(), fix deprecated syntaxTotal Modernization Cost: $35,200-45,000
1. SQL Injection (CVSS 9.8 - Critical)
// func.php:116 - Login function
$query="select * from users where name='".$name."' and pass='".$pass."' and level>0";
// Attacker input: name=' OR '1'='1' --
// Resulting query: SELECT * FROM users WHERE name='' OR '1'='1' -- ' AND pass='...'
// Result: Authentication bypass, full database access
Impact: Complete database compromise, account takeover, privilege escalation
2. Weak Password Hashing (CVSS 7.5 - High)
// func.php - User record
$_SESSION["user"][2]==md5(clean($_POST["pass"])) // MD5 with no salt
Impact: Offline rainbow table attacks, mass account compromise if database leaked
3. Mass Assignment Vulnerability (CVSS 8.1 - High)
// User input directly modifies game state
$_GET["town"]=clean($_GET["town"]); // Minimal validation
$town=town($_GET["town"]); // Direct database fetch
// Attacker can manipulate town IDs to access other players' towns
Impact: Resource theft, unauthorized town access, economic manipulation
4. Premium Currency Manipulation (CVSS 7.3 - High)
// prem.php:8-28 - Resource purchase
if($usr[7]>=2){ // Check if user has 2+ points
$query="update users set points=points-2 where id=".$_SESSION["user"][0];
// No transaction - race condition allows double-spend
}
Impact: Infinite premium currency via concurrent requests
5. XSS in Chat/Forums (CVSS 6.1 - Medium)
clean() function applies htmlspecialchars() but many output paths skip encodingImpact: Session hijacking, phishing, malware distribution
6. Information Disclosure (CVSS 5.3 - Medium)
.BAK files exposed (5 backup files in production directory)mysql_error() reveals database schemaSecurity Rating: 1/10 (Catastrophic)
$r=$faction[3] multiplier creates asymmetric balance (high-tier factions pay exponentially more)In 2008-2011 context: Competent clone among sea of identical Travian derivatives. Cathedral + weapon trading were minor differentiators, but insufficient to capture market share from Travian/Tribal Wars dominance.
In 2025 context: Historical artifact with zero competitive advantage. Modern players expect Clash of Clans-level production values, not 2008 browser sprites.
Final Innovation Score: 5.5/10
Verdict: Abandon This Codebase
Why Resurrection is Unfeasible:
Phase 1: Critical Fixes ($15,000, 6 weeks)
split() → explode(), mysql_* → MySQLi)Phase 2: Essential Upgrades ($12,000, 4 weeks)
Phase 3: Competitive Features ($25,000, 10 weeks)
Total: $52,000 and 20 weeks - Exceeds building modern alternative from scratch.
Preserve as historical artifact, do NOT commercialize. The browser strategy MMO market in 2025 demands WebGL graphics, mobile-first design, and social gameplay loops. Crusadesage represents a 2008 paradigm that cannot compete with $100M studio productions (Clash of Clans, Game of War) or indie hits (BitHeroes, Melvor Idle). Extract assets, study mechanics, build new.
---
This software contains catastrophic security vulnerabilities (SQL injection, MD5 passwords) and MUST NOT be deployed in any production environment.
Modernization Cost: $35,200-45,000 (exceeds building new game). Recommendation: Extract assets and mechanics, build modern alternative.
Crusadesage is a competent 2008-era Devana/Travian clone with 349 files implementing a feature-complete medieval strategy MMO. Technical execution is adequate for the era (24-table database, queue management, faction system), but security is catastrophic (SQL injection, MD5 passwords, XSS). Innovation is minimal (5.5/10) - cathedral system and faction growth rates are the only differentiators from countless other Travian clones. Modern viability is extremely low (2/5) due to PHP 7+ incompatibilities, deprecated functions, and $35,000+ modernization costs exceeding new development. The game has zero player data (5 INSERT statements in DB dump = clean distribution), suggesting this is either a fresh pirated copy or an abandoned project capture. Historical value lies in documenting Eastern European browser MMO clone practices circa 2008-2011. Do not deploy publicly - legal liability from known vulnerabilities outweighs any potential revenue. Preserve as educational artifact showcasing pre-mobile gaming era architecture.
| Category | Visual Rating | Score | Assessment |
|---|---|---|---|
| Innovation | 5.5/10 | Cathedral system creative; otherwise standard Travian clone | |
| Security | 0/5 | SQL injection everywhere, MD5 passwords, XSS vulnerabilities | |
| Code Quality | 3.5/10 | Good architecture, catastrophic security practices | |
| Modern Viability | 2/5 | PHP 7+ incompatible, $35k+ modernization needed | |
| Feature Completeness | 4/5 | All core systems implemented (wars, alliances, forums) | |
| Historical Value | 3/5 | Documents 2008 Devana clone proliferation era | |
| Asset Quality | 170 sprites | 1.7 MB of medieval graphics (GIF/PNG) - license value $500-2k | |
| Market Competition | 1/5 | Travian/Forge of Empires dominate genre in 2025 | |
| Overall Grade |
D+ |
Historical artifact only - DO NOT deploy | |
123
Running many of the scripts in this archive on a live server presents a serious security risk. These projects were created before modern hardening practices and may contain vulnerabilities that can compromise your system.
We strongly recommend using this code for reference and analysis only, or in isolated local environments. By downloading these files, you accept full responsibility for their use.