Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d14a766

Browse files
Create index.php
1 parent 0d47c77 commit d14a766

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

‎index.php‎

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3+
<head>
4+
5+
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
6+
<title>Top Secret Communications Platform</title>
7+
<meta name="robots" content="noindex,follow">
8+
<link rel="stylesheet" href="style.css"/>
9+
10+
</head>
11+
<body>
12+
13+
<?php
14+
## ENCRYPT FUNCTIONS
15+
function enrot13($sifrelenecek) {
16+
$kaynak = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
17+
$hedef = 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM';
18+
$yenikelime = strtr($sifrelenecek, $kaynak, $hedef);
19+
return $yenikelime;
20+
}
21+
22+
## DECRYPT FUNCTIONS
23+
function derot13($sifrelenecek) {
24+
$kaynak = 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM';
25+
$hedef = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
26+
$yenikelime = strtr($sifrelenecek, $kaynak, $hedef);
27+
return $yenikelime;
28+
}
29+
?>
30+
31+
<ul class="menu">
32+
<li><a href="index.php">Homepage</a></li>
33+
<li><a href="http://batuhan.in" target="_blank">Developer</a></li>
34+
<li><a href="http://batuhan.in/iletisim" target="_blank">Contact</a></li>
35+
</ul>
36+
37+
38+
<div class="content" style="padding:20px 0px;">
39+
<center><h1 style="color:#4f4f4f">Top Secret Communications Platform</h1></center>
40+
</div>
41+
42+
43+
<form method="post" action="">
44+
45+
<div class="content">
46+
<textarea name="content" placeholder="Text here... Available languages: English (only)" class="tcontent"></textarea>
47+
</div>
48+
49+
<div class="content" style="width:97%;padding:10px 1%">
50+
<center>
51+
<select name="type" class="select" id="">
52+
<option value="en">Encrypt</option>
53+
<option value="de">Decrypt</option>
54+
</select>
55+
56+
<input type="text" name="mail" class="input" placeholder="Send e-mail to this address." disabled/>
57+
<input type="text" name="password" class="input" style="border: 1px solid #ff8484; border-left-color: #ff4f4f; border-top-color: #ff4f4f" placeholder="Your password (Required)"/>
58+
59+
<input type="submit" class="submit" value="Okay →"/>
60+
</center>
61+
</div>
62+
63+
</form>
64+
65+
66+
<?php
67+
## Encrypting, decrypting
68+
if(@$_POST){
69+
70+
$type = htmlspecialchars(@$_POST["type"]);
71+
$content = htmlspecialchars(@$_POST["content"]);
72+
$formpass = htmlspecialchars(trim(@$_POST["password"]));
73+
74+
## Valid passwords
75+
$passwords= array("138376", "3924", "batuhan77");
76+
77+
## Checking password...
78+
if(in_array($formpass, $passwords)){
79+
80+
## Result is shown here
81+
echo '<div class="content" style="height:auto">';
82+
if($type=="de"){ echo derot13($content); }elseif($type=="en"){ echo enrot13($content); }
83+
echo '</div>';
84+
85+
}
86+
else {
87+
88+
## Incorrect Password
89+
echo '<div class="content" style="height:auto"><center><font color="red">Incorrect Password!</font></center></div>';
90+
91+
}
92+
93+
}
94+
?>
95+
96+
97+
<div class="footer">
98+
<center>
99+
<i>All rights reserved. &copy; 2013</i>
100+
</center>
101+
</div>
102+
103+
</body>
104+
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /