-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
528 lines (481 loc) · 23.1 KB
/
contact.php
File metadata and controls
528 lines (481 loc) · 23.1 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<?php
/**
* CONTACT.PHP · DECENSORWEB SECURE COMMUNICATIONS CHANNEL
* R-CORP ACCOUNTABILITY · ENCRYPTED CONTACT PROTOCOL
*
* CONTACT DETAILS:
* - EMAIL: rrralefaso@outlook.com
* - GITHUB: rr-ralefaso
* - INSTAGRAM: @unusualralph
* - SPONSOR: GitHub Sponsors
*
* SECURITY FEATURES:
* - Strict CSP headers with nonce
* - XSS protection via contextual encoding
* - Path traversal prevention
* - Secure asset validation with SRI
* - Session fingerprinting
* - PGP encryption recommended
*
* R-CORP DOCTRINE v3.4 · CONTACT HARDENED
*/
// ========== SECURITY HEADERS ==========
declare(strict_types=1);
ob_start();
// Strict Content Security Policy
header("Content-Security-Policy: " .
"default-src 'self'; " .
"script-src 'self' 'nonce-" . bin2hex(random_bytes(16)) . "'; " .
"style-src 'self' 'unsafe-inline'; " .
"img-src 'self' data: https:; " .
"font-src 'self'; " .
"connect-src 'self'; " .
"frame-ancestors 'none'; " .
"base-uri 'self'; " .
"form-action 'self'; " .
"upgrade-insecure-requests;"
);
// Mandatory security headers
header("X-Content-Type-Options: nosniff");
header("X-Frame-Options: DENY");
header("X-XSS-Protection: 1; mode=block");
header("Referrer-Policy: strict-origin-when-cross-origin");
header("Permissions-Policy: geolocation=(), microphone=(), camera=(), payment=()");
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
// Generate CSP nonce
$csp_nonce = bin2hex(random_bytes(16));
// ========== SECURE CONFIGURATION ==========
$config = [
'version' => '3.4.0',
'build' => 'CONTACT_HARDENED',
'environment' => 'production',
'project' => 'DECENSORWEB · SECURE CONTACT PROTOCOL',
'effective_date' => '2024-01-01',
'last_revised' => '2024-11-15'
];
// ========== SECURE OUTPUT ENCODING ==========
function e(string $value, string $context = 'html'): string {
if ($context === 'attr') {
return htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8');
}
return htmlspecialchars($value, ENT_HTML5, 'UTF-8');
}
// ========== SECURE ASSET VALIDATION ==========
function validateAsset(string $path): ?string {
$allowed_dirs = ['css/', 'js/', 'assets/icons/', 'assets/images/'];
$clean_path = str_replace(['../', '..\\', './', '.\\'], '', $path);
foreach ($allowed_dirs as $dir) {
if (strpos($clean_path, $dir) === 0) {
$full_path = __DIR__ . '/' . $clean_path;
if (file_exists($full_path) && is_readable($full_path)) {
return $clean_path;
}
}
}
return null;
}
// ========== VALIDATE ASSETS ==========
$css_roadmap = validateAsset('css/roadmap.css');
$css_contact = validateAsset('css/contact.css');
$js_contact = validateAsset('js/contact.js');
// ========== CONTACT INFORMATION ==========
$contact = [
'email' => 'rrralefaso@outlook.com',
'github' => 'rr-ralefaso',
'github_url' => 'https://github.com/rr-ralefaso',
'github_sponsors' => 'https://github.com/sponsors/RR-Ralefaso',
'instagram' => '@unusualralph',
'instagram_url' => 'https://instagram.com/unusualralph',
'instagram_handle' => 'unusualralph',
'pgp_fingerprint' => 'R-CORP · SECURE CHANNEL · PGP KEY AVAILABLE ON REQUEST'
];
// ========== SPONSORSHIP TIERS ==========
$sponsorship_tiers = [
[
'name' => 'RESISTANCE SUPPORTER',
'amount' => '$5/month',
'description' => 'Fund server infrastructure and basic operations. Every contribution strengthens the network.',
'icon' => '⚡'
],
[
'name' => 'DIGITAL FREEDOM GUARDIAN',
'amount' => '$20/month',
'description' => 'Support encryption tooling, security audits, and legal defense preparedness.',
'icon' => '🛡️'
],
[
'name' => 'SOVEREIGNTY PROTECTOR',
'amount' => '$50/month',
'description' => 'Sustain long-term platform independence and R-CORP accountability operations.',
'icon' => '⚔️'
]
];
// ========== COMMUNICATION CHANNELS ==========
$channels = [
[
'name' => 'SECURE EMAIL',
'value' => 'rrralefaso@outlook.com',
'url' => 'mailto:rrralefaso@outlook.com',
'icon' => '✉️',
'description' => 'Primary contact channel. PGP encrypted communication strongly preferred.',
'security' => 'PGP ENCRYPTED · TLS 1.3',
'response' => '72 HOURS'
],
[
'name' => 'GITHUB',
'value' => 'rr-ralefaso',
'url' => 'https://github.com/rr-ralefaso',
'icon' => '⌨️',
'description' => 'Project repository, issue tracking, code contributions, and security disclosures.',
'security' => '2FA REQUIRED · SIGNED COMMITS',
'response' => '48 HOURS'
],
[
'name' => 'INSTAGRAM',
'value' => '@unusualralph',
'url' => 'https://instagram.com/unusualralph',
'icon' => '📷',
'description' => 'Project updates, censorship resistance news, and community announcements.',
'security' => 'DIRECT MESSAGES MONITORED',
'response' => '24-48 HOURS'
]
];
// ========== SYSTEM STATUS ==========
$system_status = [
'state' => 'OPERATIONAL',
'security' => 'HARDENED',
'doctrine' => 'v3.4',
'timestamp' => date('Y-m-d H:i:s')
];
// Generate secure fingerprint
$fingerprint = hash_hmac('sha256', $_SERVER['HTTP_USER_AGENT'] ?? '', bin2hex(random_bytes(32)));
$short_fingerprint = substr($fingerprint, 0, 8);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<!-- SECURITY META -->
<meta http-equiv="Content-Security-Policy" content="<?php echo e("default-src 'self'; script-src 'self' 'nonce-$csp_nonce'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests;", 'attr'); ?>">
<meta name="referrer" content="strict-origin-when-cross-origin">
<title>CONTACT · SECURE CHANNELS · DECENSORWEB · R-CORP</title>
<!-- CSS · VALIDATED PATHS · SRI PROTECTED -->
<?php if ($css_roadmap): ?>
<link rel="stylesheet" href="<?php echo e($css_roadmap); ?>"
integrity="sha384-<?php echo e(base64_encode(hash_file('sha384', __DIR__ . '/' . $css_roadmap, true))); ?>"
crossorigin="anonymous">
<?php endif; ?>
<?php if ($css_contact): ?>
<link rel="stylesheet" href="<?php echo e($css_contact); ?>"
integrity="sha384-<?php echo e(base64_encode(hash_file('sha384', __DIR__ . '/' . $css_contact, true))); ?>"
crossorigin="anonymous">
<?php endif; ?>
<!-- FALLBACK FAVICON · DATA URI ONLY -->
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%23000000'/><text x='20' y='70' font-size='70' fill='%23ff0000'>⛧</text></svg>">
</head>
<body>
<!--
================================================
DECENSORWEB · SECURE COMMUNICATIONS CHANNEL
R-CORP ACCOUNTABILITY DOCTRINE v3.4
ENCRYPTED CONTACT PROTOCOL · PGP PREFERRED
CONTACT: rrralefaso@outlook.com
GITHUB: rr-ralefaso
INSTAGRAM: @unusualralph
================================================
-->
<div class="contact-container">
<!-- MAP CORNERS · TACTICAL AESTHETIC -->
<div class="map-corner top-left"></div>
<div class="map-corner top-right"></div>
<div class="map-corner bottom-left"></div>
<div class="map-corner bottom-right"></div>
<!-- ========== HEADER ========== -->
<div class="contact-header">
<div class="contact-insignia">
<span class="insignia-mark">✉️</span>
<h1 class="contact-title">SECURE CONTACT PROTOCOL</h1>
<span class="insignia-mark">🔐</span>
</div>
<div class="contact-subheader">
<span class="doctrine-tag">R-CORP · ACCOUNTABLE</span>
<span class="status-badge">SYSTEM: <?php echo e($system_status['state']); ?></span>
<span class="security-badge">SECURITY: <?php echo e($system_status['security']); ?></span>
</div>
</div>
<!-- ========== PGP NOTICE ========== -->
<div class="pgp-notice-panel">
<div class="pgp-icon">🔑</div>
<div class="pgp-content">
<h3 class="pgp-title">PGP ENCRYPTED COMMUNICATION PREFERRED</h3>
<p class="pgp-statement">
For sensitive communications, security disclosures, or confidential collaboration,
PGP encryption is strongly preferred. R-CORP maintains zero-access encryption
standards. Key fingerprint available upon request via established channels.
</p>
<div class="pgp-fingerprint">
<span class="fingerprint-label">PGP FINGERPRINT:</span>
<span class="fingerprint-value">[REQUEST VIA SECURE CHANNEL]</span>
</div>
</div>
</div>
<!-- ========== COMMUNICATIONS GRID ========== -->
<h2 class="section-heading">📡 COMMUNICATIONS CHANNELS</h2>
<div class="channels-grid">
<?php foreach ($channels as $channel): ?>
<div class="channel-card">
<div class="channel-card-header" style="border-left-color: #8b0000;">
<span class="channel-icon"><?php echo e($channel['icon']); ?></span>
<h3 class="channel-title"><?php echo e($channel['name']); ?></h3>
</div>
<div class="channel-card-body">
<p class="channel-description"><?php echo e($channel['description']); ?></p>
<div class="channel-contact">
<span class="contact-label">CONTACT:</span>
<a href="<?php echo e($channel['url']); ?>"
class="contact-link"
rel="noopener noreferrer nofollow"
target="<?php echo e($channel['name'] === 'SECURE EMAIL' ? '_self' : '_blank'); ?>">
<?php echo e($channel['value']); ?>
</a>
</div>
<div class="channel-security">
<span class="security-label">SECURITY:</span>
<span class="security-value"><?php echo e($channel['security']); ?></span>
</div>
<div class="channel-response">
<span class="response-label">RESPONSE:</span>
<span class="response-value"><?php echo e($channel['response']); ?></span>
</div>
</div>
<div class="channel-card-footer">
<span class="channel-doctrine">R-CORP · VERIFIED</span>
</div>
</div>
<?php endforeach; ?>
</div>
<!-- ========== SPONSORSHIP SECTION ========== -->
<div class="sponsorship-panel">
<div class="sponsorship-header">
<span class="sponsor-icon">⚡</span>
<h2 class="sponsorship-title">SPONSOR THE RESISTANCE</h2>
<span class="sponsor-icon">⚡</span>
</div>
<p class="sponsorship-mission">
Decensorweb is a free, independent platform. No investors. No advertisers.
No data monetization. We are sustained entirely by community sponsorship.
Your contribution directly funds server infrastructure, encryption tooling,
security audits, and legal defense. Every sponsor strengthens the network.
</p>
<div class="sponsorship-grid">
<?php foreach ($sponsorship_tiers as $tier): ?>
<div class="sponsorship-card">
<div class="sponsorship-card-header">
<span class="tier-icon"><?php echo e($tier['icon']); ?></span>
<h3 class="tier-name"><?php echo e($tier['name']); ?></h3>
<span class="tier-amount"><?php echo e($tier['amount']); ?></span>
</div>
<div class="sponsorship-card-body">
<p class="tier-description"><?php echo e($tier['description']); ?></p>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="sponsorship-cta">
<a href="<?php echo e($contact['github_sponsors']); ?>"
target="_blank"
rel="noopener noreferrer nofollow"
class="sponsorship-button">
⚡ BECOME A SPONSOR ON GITHUB ⚡
</a>
<p class="sponsorship-note">
All sponsorships are processed through GitHub Sponsors.
R-CORP maintains no access to your payment information.
</p>
</div>
</div>
<!-- ========== GITHUB PROJECT STATUS ========== -->
<div class="github-panel">
<div class="github-header">
<span class="github-icon">⌨️</span>
<h3 class="github-title">PROJECT REPOSITORY</h3>
<span class="github-icon">⌨️</span>
</div>
<div class="github-content">
<div class="github-profile">
<span class="profile-label">GITHUB:</span>
<a href="<?php echo e($contact['github_url']); ?>"
target="_blank"
rel="noopener noreferrer nofollow"
class="profile-link">
github.com/<?php echo e($contact['github']); ?>
</a>
</div>
<div class="github-stats">
<div class="stat-item">
<span class="stat-label">REPOSITORY:</span>
<span class="stat-value">decensorweb · PRIVATE</span>
</div>
<div class="stat-item">
<span class="stat-label">CONTRIBUTIONS:</span>
<span class="stat-value">OPEN · WELCOME</span>
</div>
<div class="stat-item">
<span class="stat-label">SECURITY:</span>
<span class="stat-value">SIGNED COMMITS · 2FA REQUIRED</span>
</div>
<div class="stat-item">
<span class="stat-label">ISSUES:</span>
<span class="stat-value">PUBLIC · RESPONSIBLE DISCLOSURE</span>
</div>
</div>
</div>
</div>
<!-- ========== INSTAGRAM COMMUNITY ========== -->
<div class="instagram-panel">
<div class="instagram-header">
<span class="instagram-icon">📷</span>
<h3 class="instagram-title">COMMUNITY & UPDATES</h3>
<span class="instagram-icon">📷</span>
</div>
<div class="instagram-content">
<div class="instagram-profile">
<span class="profile-label">INSTAGRAM:</span>
<a href="<?php echo e($contact['instagram_url']); ?>"
target="_blank"
rel="noopener noreferrer nofollow"
class="profile-link">
instagram.com/<?php echo e($contact['instagram_handle']); ?>
</a>
<span class="profile-handle"><?php echo e($contact['instagram']); ?></span>
</div>
<div class="instagram-description">
<p class="instagram-statement">
Follow for project announcements, censorship resistance news,
digital sovereignty updates, and community engagement.
Direct messages are monitored for legitimate collaboration inquiries.
</p>
</div>
<div class="instagram-guidelines">
<span class="guidelines-title">COMMUNITY GUIDELINES:</span>
<ul class="guidelines-list">
<li>✹ Political dissent welcomed · Hate speech not tolerated</li>
<li>✹ Encryption advocacy · Privacy education</li>
<li>✹ No harassment · No doxxing · No threats</li>
<li>✹ R-CORP accountability always</li>
</ul>
</div>
</div>
</div>
<!-- ========== RESPONSE COMMITMENT ========== -->
<div class="response-commitment-panel">
<div class="commitment-header">
<span class="commitment-icon">⏱️</span>
<h3 class="commitment-title">RESPONSE COMMITMENT</h3>
<span class="commitment-icon">⏱️</span>
</div>
<div class="commitment-content">
<div class="commitment-grid">
<div class="commitment-item">
<span class="commitment-channel">SECURE EMAIL</span>
<span class="commitment-time">72 HOURS</span>
<span class="commitment-priority">PGP PREFERRED</span>
</div>
<div class="commitment-item">
<span class="commitment-channel">GITHUB</span>
<span class="commitment-time">48 HOURS</span>
<span class="commitment-priority">SECURITY ISSUES PRIORITY</span>
</div>
<div class="commitment-item">
<span class="commitment-channel">INSTAGRAM DM</span>
<span class="commitment-time">24-48 HOURS</span>
<span class="commitment-priority">COLLABORATION INQUIRIES</span>
</div>
</div>
<p class="commitment-note">
R-CORP is committed to timely, secure, and accountable communication.
All channels are monitored by the Office of Accountability.
Encrypted communication always takes precedence.
</p>
</div>
</div>
<!-- ========== R-CORP ACCOUNTABILITY DECLARATION ========== -->
<div class="accountability-declaration">
<div class="declaration-header">
<span class="rcorp-seal">⛧ R-CORP ⛧</span>
<span class="declaration-stamp">ACCOUNTABILITY DOCTRINE</span>
</div>
<div class="declaration-content">
<p class="declaration-text">
R-CORP, as the parent company and sole governing entity of decensorweb,
assumes full responsibility for all communications received through these channels.
Your inquiries are protected. Your disclosures are secure. Your identity is your own.
We do not share contact information. We do not monitor private channels without consent.
<strong>We are the shield.</strong>
</p>
<div class="declaration-signature">
<span class="signature-line">————————</span>
<span class="signature-title">R-CORP · OFFICE OF ACCOUNTABILITY</span>
<span class="signature-line">————————</span>
</div>
</div>
</div>
<!-- ========== QUICK CONTACT REFERENCE ========== -->
<div class="quick-reference-panel">
<h3 class="reference-title">⚡ QUICK CONTACT REFERENCE</h3>
<div class="reference-grid">
<div class="reference-item">
<span class="reference-icon">✉️</span>
<span class="reference-label">EMAIL:</span>
<span class="reference-value"><?php echo e($contact['email']); ?></span>
</div>
<div class="reference-item">
<span class="reference-icon">⌨️</span>
<span class="reference-label">GITHUB:</span>
<span class="reference-value"><?php echo e($contact['github']); ?></span>
</div>
<div class="reference-item">
<span class="reference-icon">📷</span>
<span class="reference-label">INSTAGRAM:</span>
<span class="reference-value"><?php echo e($contact['instagram']); ?></span>
</div>
<div class="reference-item">
<span class="reference-icon">⚡</span>
<span class="reference-label">SPONSOR:</span>
<span class="reference-value">GitHub Sponsors</span>
</div>
</div>
</div>
<!-- ========== FOOTER NAVIGATION ========== -->
<div class="contact-footer">
<div class="footer-nav-links">
<a href="index.html" class="footer-nav-link" rel="noopener noreferrer">← MAIN TERMINAL</a>
<a href="navigate.php" class="footer-nav-link" rel="noopener noreferrer">← NAVIGATION HUB</a>
<a href="roadmap.html" class="footer-nav-link" rel="noopener noreferrer">← PROJECT:OVERTHROW</a>
<a href="about.php" class="footer-nav-link" rel="noopener noreferrer">← DECENSORWEB</a>
<a href="privacy.php" class="footer-nav-link" rel="noopener noreferrer">← PRIVACY</a>
</div>
<div class="footer-status">
<span class="coordinate">CONTACT · SECTOR 7</span>
<span class="doctrine-version">v<?php echo e($config['version']); ?> · <?php echo e($config['build']); ?></span>
<span class="fingerprint">[<?php echo e($short_fingerprint); ?>]</span>
</div>
<div class="footer-doctrine">
<span class="doctrine-short">ENCRYPTED · ACCOUNTABLE · SOVEREIGN</span>
</div>
</div>
<!-- SECURE BUILD TIMESTAMP (COMMENT ONLY) -->
<!-- BUILD: <?php echo e(date('Y-m-d H:i:s')); ?> · CONTACT: rrralefaso@outlook.com · GITHUB: rr-ralefaso · INSTAGRAM: @unusualralph · NONCE: <?php echo e(substr($csp_nonce, 0, 8)); ?> · R-CORP AUDIT PASSED -->
</div>
<!-- JAVASCRIPT · EXTERNAL · SRI PROTECTED · NONCE ENFORCED -->
<?php if ($js_contact): ?>
<script src="<?php echo e($js_contact); ?>"
nonce="<?php echo e($csp_nonce); ?>"
integrity="sha384-<?php echo e(base64_encode(hash_file('sha384', __DIR__ . '/' . $js_contact, true))); ?>"
crossorigin="anonymous"
defer></script>
<?php endif; ?>
</body>
</html>
<?php ob_end_flush(); ?>