-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathindex.php
164 lines (141 loc) · 8.04 KB
/
index.php
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
<?php
include('head.php');
class DB extends SQLite3
{
function __construct()
{
$this->open('ica-lab.db');
}
}
$db = new DB();
if(!$db){
echo $db->lastErrorMsg();
}
function is_array_empty($arr){
if(is_array($arr)){
foreach($arr as $key => $value){
if(!empty($value) || $value != NULL || $value != ""){
return true;
break;
}
}
return false;
}
}
echo '';
echo '<div id="left"><div class="main"><table align=center cellspacing="0" cellpadding="0" style="border-collapse: collapse;border:0px;">
<tr>
<form method=post action="index.php">
<td align=right style="padding:0px; border:0px; margin:0px;">
<input type=submit name=home value="Home" class="side-pan">
</td>
<td align=right style="padding:0px; border:0px; margin:0px;" >
<input type=submit name=plans value="Hosting Plans" class="side-pan">
</td>
<td align=left style="padding:0px; border-width:0px; margin:0px;">
<input type=submit name=box value="Search Plans" class="side-pan">
</td>
<td align=left style="padding:0px; border-width:0px; margin:0px;">
<input type=submit name=us value="Who we are" class="side-pan">
</td>
</form></tr></table></div></div>
<div id="right"></div><div align=center>';
if(isset($_POST['us']))
{
echo '
<table width="100%" cellspacing="0" cellpadding="0" class="tb1" style=" border:0px;background-color: #191919; opacity: 0.6;" >
<tr><td
align="center"><img src="images/who.jpg"></td><td
align="center" valign="top" rowspan="1"><font
color="red" face="comic sans ms"size="1"><br><font color=white >
--==[[Greetz to]]==--</font><br> <font color=#ff9933>Guru ji zero ,code breaker ica, root_devil, google_warrior,INX_r0ot,Darkwolf indishell,Baba ,Silent poison India,Magnum sniper,ethicalnoob Indishell,Local root indishell,Irfninja indishell<br>Reborn India,L0rd Crus4d3r,cool toad,Hackuin,Alicks,Gujjar PCP,Bikash,Dinelson Amine,Th3 D3str0yer,SKSking,rad paul,Godzila,mike waals,zoo zoo,cyber warrior,shafoon, Rehan manzoor<br>cyber gladiator,7he Cre4t0r,Cyber Ace, Golden boy INDIA,Ketan Singh,Yash,Aneesh Dogra,AR AR,saad abbasi,hero,Minhal Mehdi ,Raj bhai ji , Hacking queen ,lovetherisk, D2 and rest of TEAM INDISHELL<br>
<font color=white>--==[[Love to]]==--</font><br># My Father ,my Ex Teacher,cold fire hacker,Mannu, ViKi ,Ashu bhai ji,Soldier Of God, Bhuppi,Gujjar PCP,
Mohit,Ffe,Ashish,Shardhanand,Budhaoo,Jagriti,Salty, Hacker fantastic, Jennifer Arcuri and Don(Deepika kaushik),Govind<br><br>
</table>
</table>
';
}
if(isset($_POST['box']))
{
echo '<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="border: 0px; background-color: transparent; ">
<tr><td width="40%" align=center style="padding: 10px; background-color: #191919; opacity: 0.6;">
Hi, you can search your hosting plan according to following Tags <br>
<font color=#ff9933 > ubuntu,redhat,kali and windows</h4></td></tr><tr>
<td width="40%" align=center style="padding: 10px;">
<form method=post action="index.php" style="margin:10px;">
<input type=text name=tag style="padding: 5px;" value="ubuntu,windows etc..">
<br><br>
<input type=submit name=search value="Check Plan"></form>
</td></tr></table>
';
}
if(isset($_POST['search']))
{
$sql = "SELECT * from info where Tag = '".trim($_POST['tag'])."';";
$output = $db->query($sql);
$row = $output->fetchArray(SQLITE3_ASSOC);
if(is_array_empty($row))
{
echo '<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="opacity: 0.8;">
<tr><td width="30%" align=left style="padding: 10px;" >Dear, you plan is available:) <br> Please write a mail to us <font color=#ff9933 size=4>[email protected]</font> with your requirements.</td></tr></table>';
}
else
{
echo '<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="opacity: 0.8;">
<tr><td width="30%" align=left style="padding: 10px;" >sorry, but your plan is not available. Shot mail to e-mail <font color=#ff9933 size=4>[email protected]</font></td></tr></table>';
}
}
if(isset($_POST['plans']))
{
$sql ="SELECT * from info;";
$output = $db->query($sql);
echo '
<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="opacity: 0.8;">
<tr><td width="30%" align=center style="padding: 10px;" >Serial Number</td><td width="40%" align=center style="padding: 10px;">Operating system</td><td width="30%" align=center style="padding: 10px;">Price</td></tr></table>
<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="margin:10px 2px 10px;opacity: 0.8;" ><tr>
';
while($row = $output->fetchArray(SQLITE3_ASSOC) )
{
echo '<td width="30%" align=center style="padding: 5px;"><a href="?snumber='. $row['number'] . '">'. $row['number'] . '</a></td><td width="40%" align=center style="padding: 5px;"><a href="?tag='. $row['Tag'] .'">'. $row['OS'] .'</a></td><td width="30%" align=center style="padding: 5px;">'. $row['Price'] .'</td></tr>';
}
$db->close();
}
if(isset($_GET['snumber']))
{
$sql = "SELECT * from info where number = ".trim($_GET['snumber']).";";
$output = $db->query($sql);
$row = $output->fetchArray(SQLITE3_ASSOC);
if(is_array_empty($row))
{
//print_r($all);
echo '<div align=center>
<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="opacity: 0.8;">
<tr><td width="30%" align=left style="padding: 10px;" >Hi, deatils for the selected hosting plan is following, Hopefully you will find it suitable for your requirement :) <br><div align=right>-Pirate Host-</div></td></tr></table>
<table width="30%" cellspacing="0" cellpadding="0" class="tb1" style="margin:10px 2px 10px;opacity: 0.8;" ><tr>';
echo '<td width="60%" align=center style="padding: 5px;">Default Operating system</td><td width="40%" align=left style="padding: 5px;color:#ff9933;">'. $row['OS'] .'</td></tr><tr><td width="60%" align=center style="padding: 5px;">Monthly payment (in $)</td><td width="30%" align=left style="padding: 5px; color:#ff9933;">'. $row['Price'] .'</td></tr><tr><td width="60%" align=center style="padding: 5px;"> Assigned IP </td><td width="40%" align=left style="padding: 5px; color:#ff9933;">'.$row['Server_IP'].' </td>';
}
else {
echo "serial number doesn't exist :) please try correct one";
}
$db->close();
}
if(isset($_GET['tag']))
{
$sql = "SELECT * from info where Tag = '".trim($_GET['tag'])."';";
$output = $db->query($sql);
$row = $output->fetchArray(SQLITE3_ASSOC);
if(is_array_empty($row))
{
echo '<div align=center>
<table width="50%" cellspacing="0" cellpadding="0" class="tb1" style="opacity: 0.8;">
<tr><td width="30%" align=left style="padding: 10px;" >Hi, deatils for the selected hosting plan Tag is following, Hopefully you will find it suitable for your requirement :) <br><div align=right>-Pirate Host-</div></td></tr></table>
<table width="30%" cellspacing="0" cellpadding="0" class="tb1" style="margin:10px 2px 10px;opacity: 0.8;" ><tr>';
echo '<td width="60%" align=center style="padding: 5px;">Default Operating system</td><td width="40%" align=left style="padding: 5px;color:#ff9933;">'. $row['OS'] .'</td></tr><tr><td width="60%" align=center style="padding: 5px;">Monthly payment (in $)</td><td width="30%" align=left style="padding: 5px; color:#ff9933;">'. $row['Price'] .'</td></tr><tr><td width="60%" align=center style="padding: 5px;"> Assigned IP </td><td width="40%" align=left style="padding: 5px; color:#ff9933;">'.$row['Server_IP'].' </td>';
}
else {
echo "sorry, seems Tag name is inconnect. Please try again with available Tag :) ";
}
$db->close();
}
echo "<font size=5 face=\"comic sans ms\" style=\"left: 0;bottom: 0; position: absolute;margin: 0px 0px 5px;\">Welcome to <font color=#ff9933>Pirate H0st</font>. we provide affordable hosting servers ";
?>