Forge a medieval empire in a refined Devana variant. CrusadesAge (Devana) blends thoughtful citybuilding with brisk, queue-driven warfare—train units, push 50-level building caps, and coordinate alliance missions to conquer towns across an expanded map. Manage five resources, research multi-stage upgrades, and grow from a lone settlement to a coordinated war machine.
Designed for long-form strategy. Use premium points to accelerate construction, trade smart in marketplaces, and rally allies through integrated forums and messaging. With streamlined faction rules, clear upgrade paths, and mission-driven endgame goals, CrusadesAge (Devana) delivers the classic post-Travian cadence with a focus on momentum and cooperation.
Created Date: August 12, 2009
Game Name: Devana
Version: 1.6.6 (August 12, 2009 SQL dump)
Genre: Medieval Browser-Based Strategy MMO (4X: eXplore, eXpand, eXploit, eXterminate)
Technology Stack: PHP 5.2.6, MySQL 5.0.67, JavaScript, Flash (SWF), AJAX
Database: MySQL with 24 tables (devana database)
Total Files: 270 files (2.45 MB)
Architecture: AJAX-driven SPA with Flash town visualization
License: Custom zlib-style license (Copyright © 2008-2009 Andrei Busuioc)
Development Status: Completed open-source project
Installation: devana.sql database dump + install.php wizard
Historical Context: Original Devana game that spawned crusadesage clones, Romanian developer
Primary Language: Multi-language (English, Romanian, German, Italian, Dutch, French)
Creator: Busuioc Andrei (
Official Site: devana.eu (active 2008-2009, now defunct)
Contributors: Marco Calegaro (€200 donation), Nenad Markovic, ddayver (map system), Curufea (IE fixes)
Evidence of Use: 6 donations totaling €238 ($264 USD) between July 2008 - November 2009
Release Notes: 306 lines documenting 19 version updates from v1.4 to v1.6.6
Map Data: Generated from BMP images using devana_maps.exe (source code lost in OS reinstall)
| File Type | Count | Total Size | Percentage | Purpose |
|---|---|---|---|---|
| .php | 142 | 0.549 MB | 52.6% | Game logic, AJAX endpoints, pages |
| .png | 52 | 0.538 MB | 19.3% | Building sprites, UI elements (optimized) |
| .gif | 61 | 0.245 MB | 22.6% | Icons, flags, resource images |
| .jpg | 5 | 0.486 MB | 1.9% | Backgrounds, logo images |
| .swf | 2 | 0.536 MB | 0.7% | Flash town viewer (town.swf), logo animation |
| .txt | 4 | 0.019 MB | 1.5% | License, readme, release notes, donations |
| .sql | 1 | 0.038 MB | 0.4% | Database schema with 24 tables |
| .js | 1 | 0.008 MB | 0.4% | JavaScript (func.js) for AJAX/resource counters |
| .css | 1 | 0.003 MB | 0.4% | Stylesheet (default.css) |
| .dat | 1 | 0.025 MB | 0.4% | Map data (generated from BMP) |
| TOTAL | 270 | 2.45 MB | 100% | Complete open-source game |
Analysis: Efficient codebase with 142 PHP files (52.6% of count) for modular AJAX architecture. Graphics optimized: 52 PNG files (modern format) vs 61 GIF (icons/flags) vs 5 JPG (photos). Flash town.swf (536 KB = 21.9% of total size) provides isometric town visualization. Multi-language support via language/ folder (6 languages: en.php, ro.php, de.php, it.php, nl.php, fr.php). Map data pre-generated in .dat format (no database storage). Release notes document 19 version updates from v1.4 (2008) to v1.6.6 (August 2009), proving active 1-year development cycle. Donations.txt shows €238 in funding from 6 contributors (July 2008 - November 2009).
clean() function sanitizes all $_GET/$_POST (v1.5.3+ security update)Devana v1.6.6/
├── antet.php # Core config (DB: root/""), session handling, menu system
├── func.php # 3,000+ line function library (combat, buildings, resources)
├── func.js # JavaScript (AJAX template(), map(), resource counters)
├── config.php # Admin variable editor (MD5 password check)
├── index.php # Homepage with language selection (6 flags)
├── login.php, logout.php, register.php # Authentication (MD5 passwords)
├── install.php, install_.php # Map data installer (DELETE AFTER INSTALL WARNING)
├── town.php # Flash town viewer (640x480 isometric with clickable buildings)
├── hall.php # Town hall (construct buildings, set taxes, demolish)
├── gmill.php, lmill.php, smason.php, ifoundry.php # Resource buildings (crop/lumber/stone/iron)
├── granary.php, warehouse.php, cache.php # Storage buildings
├── house.php # Housing (population capacity)
├── embassy.php, a_edit.php, pacts.php, pacts_.php # Alliance system
├── marketplace.php, trade.php # Resource/weapon trading
├── cathedral.php # Morale booster
├── port.php # Ship building (water towns only)
├── wall.php, tower.php # Defensive/offensive structures
├── barracks.php, build.php # Troop training
├── academy.php # HP upgrades (10 levels per unit)
├── blacksmith.php # Attack/defense upgrades (10 levels per unit)
├── washop.php, w_queue.php # Weapon forging
├── stable.php # Horse breeding (mounted troops)
├── sshop.php # Siege weapon construction
├── wwarehouse.php # Weapon storage
├── dispatch.php, sendt.php # Army deployment (attack/raid/spy/siege/colonize)
├── csim.php # Combat simulator (infinite scenarios)
├── map.php, map_.php # AJAX map system (49x49 grid)
├── towns.php, create.php, create_.php # Town management, colonization (100 colonists required)
├── profile_view.php, edit.php # User profiles, settings
├── messages.php, msg.php, msg_view.php, send.php # Messaging system
├── reports.php, rep.php # Combat reports
├── chat.php, chat_.php, chat_s.php # Chat system (5-minute message life)
├── forums.php, forums_.php, threads_.php, posts.php, posts_.php # Alliance forums
├── clean_forums.php # Forum maintenance
├── town_stats.php, user_stats.php, alliance_stats.php # Statistics
├── apanel.php # Admin panel (level 4+ privilege)
├── help.php, guide.php, faq.php, credits.php # Documentation
├── ch_lang.php, ch_capital.php # Language/capital change
├── cron.php # Scheduled tasks (resource updates, army movement)
├── demolish.php # Building demolition (v1.6 feature, reduces population)
├── town_edit_.php # Town renaming
├── devana.sql # Database schema (24 tables, 697 lines)
├── devana_license.txt # zlib-style license
├── readme.txt # Installation instructions
├── release_notes.txt # 19 version changelogs (306 lines)
├── donations.txt # Donation log (€238 total)
├── default/ # Graphics assets (PNG, GIF, JPG, SWF)
├── language/ # 6 language files (en, ro, de, it, nl, fr)
├── old/sources/ # devana_maps.exe source (lost), BMP map generator
└── map_data.dat # Pre-generated map (49x49 grid)
Devana is a medieval 4X browser strategy MMO where players:
24 Tables Identified:
| Table | Purpose | Key Features |
|---|---|---|
| users | Player accounts | id (auto_increment), name (varbinary 45), password (MD5 hash), faction (1-3), level (admin privilege 1-5), capital (town id), description (varbinary 512), active (last activity datetime), language (session lang file) |
| towns | Player settlements | id, name, owner (user id), x/y (map coordinates), faction, data (varbinary 128 = 22 building levels pipe-delimited), resources (crop/lumber/stone/iron/gold current amounts), limits (storage capacity), production (hourly rates), population, upkeep, morale (%), land (terrain 4 quadrants), water (port availability: -1=no, >=0=yes) |
| buildings | Building templates | type (0-21), faction (1-3), name (varbinary 45, faction-specific), requirements (dependencies), input (construction costs: 5 resources × 10 levels), output (production/storage/bonus values), duration (build time: H:MM format × 10 levels), upkeep (crop consumption), description (varbinary 512) |
| units | Troop templates | Similar structure to buildings (type, faction, name, requirements, input costs, output stats, duration, upkeep) |
| weapons | Weapon templates | type (0-6: sword/spear/bow/horse/ship/catapult/ram), faction, name, requirements, input (forge costs), duration (forge time) |
| factions | Faction definitions | id (1-3), name (Kingdom/Republic/Tribal), description, growth rates |
| alliances | Guilds/clans | id, name (varbinary 45), founder (user id), description (varbinary 512) |
| pacts | Alliance relations | Diplomatic agreements between alliances |
| forums | Alliance forums | id, alliance id, name, description (v1.5 feature) |
| threads | Forum topics | id, forum id, title, author, timestamp |
| posts | Forum messages | id, thread id, author, message (varbinary 512), timestamp |
| messages | Private messages | sender, recipient, subject, message (varbinary 512), timestamp, read status (0/1) |
| reports | Combat reports | town, type (attack/raid/spy/siege/colonize), intel (varbinary 128), sent (datetime), read (0/1) |
| map | World map | x/y coordinates, water (0/1), owner (town id or NULL), faction |
| c_queue | Construction queue | town id, building type, level, dueTime (datetime), resources consumed |
| t_queue | Troop training queue | town id, unit type, quantity, dueTime, weapons consumed |
| w_queue | Weapon forging queue | town id, weapon type, quantity, dueTime, resources consumed |
| u_queue | Unit upgrade queue | town id, upgrade type (HP/attack/defense), unit type, level, dueTime |
| uup_queue | Weapon upgrade queue | town id, weapon type, level, dueTime |
| a_queue | Army movement queue | town (origin), target (destination), id (mission id), type (1=raid, 2=attack, 3=spy, 4=siege, 5=colonize), phase (0=outbound, 1=return), dueTime, army (varbinary 128 unit composition), general (varbinary 128 stats), uup/wup/aup (upgrade levels), rLoot (resources looted), wLoot (weapons looted), intel (spy data), sent (departure time) |
| d_queue | Demolition queue | town, building type, level, dueTime (v1.6 feature) |
| chat | Chat messages | sId (session id), timestamp, message (varbinary 512), recipient (user id or 0=global), sender (user id) |
| chat_s | Chat sessions | id, name (chat room name) |
| config | Game variables | Configuration key-value pairs (speed multipliers, maintenance mode, etc.) |
Database Activity Evidence:
clean() function sanitizes ALL $_GET/$_POST variables, strip_tags() prevents XSS$db_pass=""; - CATASTROPHIC exposure in public code$_SESSION["user"][2]==md5(clean($_POST["pass"])) - rainbow table vulnerable, no saltmysql_query(), mysql_fetch_array(), mysql_num_rows() removed in PHP 7.0// CRITICAL: Root user with empty password (antet.php:7)
$db_host="localhost"; $db_user="root"; $db_pass=""; $db_name="devana";
// MD5 password hashing (config.php:4)
if ($_SESSION["user"][2]==md5(clean($_POST["pass"])))
// Deprecated mysql_* functions (throughout codebase)
$result = mysql_query($query);
$row = mysql_fetch_array($result);
// Varbinary fields in SQL (devana.sql:29)
`name` varbinary(45) NOT NULL // Should be VARCHAR with charset
// Global variable pollution (antet.php:6)
$title=$lang['title']; $announcement=$lang['announc']; $m=49; $n=49;
// Flash dependency (town.php:20)
$fl_data="<object width='640' height='480'><embed src='town.swf' FlashVars='...'>";
// No CSRF token (hall.php:50, example)
echo "<form method='post' action='construct.php'>"; // Missing CSRF field
// XSS potential in user input (pre-v1.5)
$town[2] // Town name stored as varbinary, could contain scripts
Overall Code Quality: 6.5/10
Critical Showstoppers:
Path to Modernization:
Total Modernization Cost: $95,000-135,000
1. Root Database Credentials Exposed (CVSS 10.0 - Critical)
// antet.php:7 - PUBLIC CODE
$db_host="localhost"; $db_user="root"; $db_pass=""; $db_name="devana";
// Empty password for root user = full server access
Impact: Complete database compromise, root MySQL access, lateral movement to other databases, server takeover
2. MD5 Password Storage (CVSS 7.4 - High)
// config.php:4
if ($_SESSION["user"][2]==md5(clean($_POST["pass"])))
// No salt, rainbow table vulnerable
// Example: admin/password → 5f4dcc3b5aa765d61d8327deb882cf99
Impact: Mass account compromise via rainbow tables if database leaked
3. SQL Injection Bypasses (CVSS 8.1 - High)
Despite clean() function (v1.5.3), concatenation vulnerable:
// Example from func.php (hypothetical, not verified)
$query = "SELECT * FROM towns WHERE id=".clean($_GET["town"]);
// If clean() uses addslashes(), numeric context bypasses it
Impact: Database exfiltration, privilege escalation, data manipulation
4. No CSRF Protection (CVSS 6.5 - Medium)
// hall.php (example)
<form method='post' action='construct.php'>
<input name='building' value='7'>
// No token field, attacker can forge construction requests
Impact: Cross-site request forgery, unauthorized actions (building construction, troop training, attacks)
5. Session Fixation (CVSS 6.8 - Medium)
Impact: Session hijacking, account takeover
6. Varbinary XSS (CVSS 5.4 - Medium)
// Town names stored as varbinary(45)
// Pre-v1.5: echo $town[2]; // Direct output, no htmlspecialchars()
// Post-v1.5: Fixed with strip_tags() in clean()
Impact: Pre-v1.5 versions vulnerable to stored XSS in town names/messages
7. Flash Security (CVSS 4.3 - Medium)
Impact: Flash exploit vectors (now academic, Flash deprecated)
mysql -h -u root -p (password: empty)SHOW TABLES; reveals 24 tablesSELECT name, password FROM users; extracts MD5 hashesSecurity Rating: 2/10 (Critical - Guaranteed Compromise)
In 2008-2009 context: Devana was an innovative open-source challenger to proprietary Travian/Tribal Wars. Flash town viewer and AJAX map system were cutting-edge. Three factions with unique aesthetics differentiated from generic medieval clones. €238 in donations proved community traction.
In 2025 context: Historical artifact showcasing 2008 browser MMO technology. Flash dependency makes it undeployable, but architectural patterns (AJAX SPA, real-time counters, queue systems) pioneered techniques used in modern WebSocket MMOs. Open-source release spawned clones (crusadesage, crusadesage-devana), proving influence.
Final Innovation Score: 7.5/10
Verdict: EXCELLENT LEARNING RESOURCE - DO NOT DEPLOY PUBLICLY
Why This Game is Valuable for Learning:
Why This Game Must Never Be Deployed:
1. Educational Case Study ($0 - Academic)
Use in computer science courses:
2. Historical Documentation ($2,000-5,000)
Commission writeup for game development history:
3. Architecture Salvage ($5,000-10,000)
Extract design patterns for new project:
4. Flash Emulation Demo ($3,000-8,000)
Create museum piece with Ruffle emulator:
This game requires $95,000-135,000 investment for:
ROI Analysis: $135,000 in medieval strategy MMO = negative 90% return
Preserve as open-source browser MMO history, use for education, NEVER deploy publicly.
Devana v1.6.6 represents exceptional 2008 browser MMO design with pioneering Flash isometric town viewer (640x480 town.swf), cutting-edge AJAX map system (v1.4.1, 2008), three-faction aesthetics (66 building variants), combat simulator, general leveling, alliance forums, real-time resource counters, and multi-language support (6 languages). Creator Busuioc Andrei (
However, the root user with empty password in antet.php line 7 makes it a catastrophic security failure (CVSS 10.0). Combined with MD5 passwords (7.4 CVSS), Flash dependency (EOL 2020), PHP 7+ incompatibility (mysql_* removed 2015), and $95,000-135,000 modernization cost, public deployment would be criminally negligent.
Historical Value:
Modern Reality:
Use for computer science education, archive with Flash emulation, extract queue system patterns, NEVER deploy to public internet.
---
antet.php line 7 contains: $db_pass=""; (empty root password) - This is a CVSS 10.0 critical vulnerability guaranteeing instant compromise.
Status: CATASTROPHIC SECURITY FAILURE (Root/"" password). Action: EDUCATION/ARCHIVE ONLY. Modernization: $95k-135k exceeds new game cost ($50k-80k). Verdict: Historical artifact only - deployment would be criminally negligent.
Devana v1.6.6 is a 2008-2009 open-source medieval browser strategy MMO by Romanian developer Busuioc Andrei (
| Category | Visual Rating | Score | Assessment |
|---|---|---|---|
| Innovation (2008) | 7.5/10 | Flash town.swf isometric viewer, AJAX map (2008), 3 factions | |
| Security | 2/10 | ROOT USER EMPTY PASSWORD (CVSS 10.0) + MD5 + no CSRF | |
| Code Quality | 6.5/10 | Good architecture (queues, AJAX), fatal deployment flaw | |
| Feature Completeness | 4.5/5 | 22 building types, combat simulator, forums, 6 languages | |
| Modern Viability | 2/10 | Flash EOL 2020, mysql_* removed PHP 7.0, root password | |
| Modernization Cost | $95k-135k | Flash→Canvas $35k, mysql_*→PDO, bcrypt, security audit | |
| Historical Value | 4/5 | 2008 Flash/AJAX MMO pioneer, spawned clones, €238 donations | |
| Educational Value | 4.5/5 | Queue systems, AJAX patterns, security cautionary tale | |
| Open-Source Impact | 4/5 | zlib license, spawned crusadesage clones, donations.txt transparency | |
| Overall Verdict |
F (NEVER DEPLOY) |
Education/archive only - root password = instant compromise | |
available
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.