-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
46 lines (40 loc) Β· 1.65 KB
/
setup.php
File metadata and controls
46 lines (40 loc) Β· 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
require_once 'config/database.php';
// Initialize database and create demo data
$db = new Database();
$conn = $db->getConnection();
// Create demo user
$username = 'demo_user';
$email = 'demo@codematerwa.com';
$password = password_hash('demo123', PASSWORD_DEFAULT);
$full_name = 'Demo User';
$stmt = $conn->prepare("INSERT IGNORE INTO users (username, email, password, full_name, role) VALUES (?, ?, ?, ?, 'community')");
$stmt->bind_param("ssss", $username, $email, $password, $full_name);
$stmt->execute();
// Create demo messages
$demo_messages = [
"Welcome to CodeMateRwa's revolutionary community! π",
"This is the future of digital collaboration in Rwanda! π·πΌ",
"Our AI assistant is ready to help with any questions! π€",
"Join the digital revolution - let's build something amazing together! β‘"
];
foreach ($demo_messages as $message) {
$stmt = $conn->prepare("INSERT INTO chat_messages (user_id, channel, message) VALUES (1, 'general', ?)");
$stmt->bind_param("s", $message);
$stmt->execute();
}
echo "β
CodeMateRwa Revolutionary Hub Setup Complete!\n\n";
echo "π Your revolutionary platform is ready at: http://localhost/Codematerwa/\n\n";
echo "Features activated:\n";
echo "β’ 3D Interactive Background β¨\n";
echo "β’ Real-time Community Chat π¬\n";
echo "β’ AI Assistant (CodeMate AI) π€\n";
echo "β’ Voice Navigation π€\n";
echo "β’ Gesture Controls π\n";
echo "β’ Revolutionary Design π¨\n\n";
echo "Demo User Created:\n";
echo "β’ Username: demo_user\n";
echo "β’ Email: demo@codematerwa.com\n";
echo "β’ Password: demo123\n\n";
echo "π₯ Ready to revolutionize Rwanda's digital landscape!\n";
?>