Browse code

Merge branch 'master' of eunichx.us:plataforma-ce

t

Blackbeard authored on 2018-11-20 21:14:53
Showing 25 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+include("../../res/config.php");
4
+include("../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+setcookie("username", "", time() - (86400 * 30), "/");
9
+redirect("");
10
+
11
+?>
0 12
new file mode 100644
... ...
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+include("../../res/config.php");
4
+include("../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$page_title="Empresario Signup";
9
+include(root("res/temp/head.php"));
10
+include(root("res/temp/header.php"));
11
+
12
+// -------------------------------------
13
+?>
14
+
15
+<h2>Empresario Signup</h2>
16
+
17
+<p>Si aún no estas registrado, solicita una cuenta personalmente o por medio
18
+de un representante legal, en el área de Informática de la Cámara de Comercio
19
+Durango.</p>
20
+
21
+<?php
22
+// -------------------------------------
23
+
24
+include(root("res/temp/footer.php"));
25
+
26
+?>
0 27
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$username = $_POST["username"];
9
+$password = $_POST["password"];
10
+$email = $_POST["email"];
11
+$name = $_POST["name"];
12
+
13
+if (empty($username) || empty($password) || empty($email) || empty($name))
14
+{
15
+	redirect("vistante/signup/result/account/create-fail.php");
16
+}
17
+else
18
+{
19
+	file_write("../../../local/users.txt",
20
+		user_create($username, $password, $email, $name) . "\n",
21
+		"a");
22
+	redirect("visitante/signup/result/account/create-pass.php");
23
+}
0 24
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$page_title="ACCOUNT NOT CREATED";
9
+include(root("res/temp/head.php"));
10
+include(root("res/temp/header.php"));
11
+
12
+// -------------------------------------
13
+?>
14
+
15
+
16
+<h2>PLEASE FILL OUT EVERY REQUIRED FORM.</h2>
17
+<h3>PLEASE, <a href="../index.php">TRY AGAIN</a>.</h3>
18
+
19
+
20
+<?php
21
+// -------------------------------------
22
+
23
+include(root("res/temp/footer.php"));
24
+
25
+?>
0 26
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$page_title="ACCOUNT CREATED";
9
+include(root("res/temp/head.php"));
10
+include(root("res/temp/header.php"));
11
+
12
+// -------------------------------------
13
+?>
14
+
15
+
16
+<h2>YOUR ACCOUNT HAS BEEN CREATED!</h2>
17
+<h3>PLEASE, PROCEED TO <a href="../../login">LOG IN</a>.</h3>
18
+
19
+
20
+<?php
21
+// -------------------------------------
22
+
23
+include(root("res/temp/footer.php"));
24
+
25
+?>
0 26
new file mode 100644
... ...
@@ -0,0 +1,40 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+if (!company_logged_in())
8
+{
9
+        redirect("empresario/");
10
+}
11
+else
12
+{
13
+
14
+$page_title="Quejas";
15
+include(root("res/temp/head.php"));
16
+include(root("res/temp/header.php"));
17
+
18
+$users = file_read(root("local/users.txt"));
19
+$companies = file_read(root("local/companies.txt"));
20
+$complaints = file_read(root("local/quejas.txt"));
21
+$user = company_logged_in();
22
+$user_complaints = complaints_with_ee($complaints, $user);
23
+
24
+// -------------------------------------
25
+?>
26
+
27
+<h2>Complaints</h2>
28
+<hr>
29
+
30
+<?php
31
+
32
+echo html_complaints_list($user_complaints);
33
+
34
+?>
35
+
36
+<?php
37
+// -------------------------------------
38
+
39
+include(root("res/temp/footer.php"));
40
+}
0 41
new file mode 100644
... ...
@@ -0,0 +1,57 @@
1
+<?php
2
+
3
+include("../../../../res/config.php");
4
+include("../../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+if (!company_logged_in() || empty($_GET["q"]))
8
+{
9
+	redirect("empresario/");
10
+}
11
+else
12
+{
13
+
14
+	$complaint_title = $_GET["q"];
15
+	$page_title="Queja - " . $complaint_title;
16
+	include(root("res/temp/head.php"));
17
+	include(root("res/temp/header.php"));
18
+
19
+	$users = file_read(root("local/users.txt"));
20
+	$companies = file_read(root("local/companies.txt"));
21
+	$complaints = file_read(root("local/quejas.txt"));
22
+	$user = company_logged_in();
23
+	$complaint = complaint_block($complaints, $complaint_title);
24
+	$complaint_status = complaint_status($complaint);
25
+
26
+	// -------------------------------------
27
+
28
+	echo html_complaint_title($complaint, $users, $companies);
29
+
30
+	echo html_complaint_messages($complaint, $users, $companies);
31
+
32
+	if ($complaint_status == "open")
33
+	{
34
+		?>
35
+
36
+		<form action="private/submit.php?q=<?php echo $complaint_title; ?>" method="post" enctype="multipart/form-data">
37
+		<p>
38
+		<b>Response: </b><input type="text" placeholder="" name="message")
39
+		</p>
40
+		</form>
41
+
42
+
43
+<?php
44
+	}
45
+	else
46
+	{
47
+		?>
48
+		<p><b><i>Complaint marked as resolved.</i></b></p>
49
+		<?php
50
+	}
51
+
52
+
53
+		// -------------------------------------
54
+
55
+		include(root("res/temp/footer.php"));
56
+}
57
+?>
0 58
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+include("../../../../../res/config.php");
4
+include("../../../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$message = $_POST["message"];
9
+$queja = $_GET["q"];
10
+
11
+$users = file_read(root("local/users.txt"));
12
+$companies = file_read(root("local/companies.txt"));
13
+
14
+if (empty($message) || empty($queja))
15
+{
16
+	redirect("empresario/user/quejas/old/result/submit-incomplete.php");
17
+}
18
+else
19
+{
20
+	complaint_response($queja, $message, "eem");
21
+	redirect("empresario/user/quejas/old/?q=" . $queja);
22
+}
0 23
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$page_title="LOGIN FAILURE";
9
+include(root("res/temp/head.php"));
10
+include(root("res/temp/header.php"));
11
+
12
+// -------------------------------------
13
+?>
14
+
15
+
16
+<h2>INCORRECT PASSWORD OR USERNAME.</h2>
17
+<h3>PLEASE, <a href="../index.php">TRY AGAIN</a>.</h3>
18
+
19
+
20
+<?php
21
+// -------------------------------------
22
+
23
+include(root("res/temp/footer.php"));
24
+
25
+?>
0 26
new file mode 100755
... ...
@@ -0,0 +1,5 @@
1
+:username redhat
2
+:password itsatreblenotafedoradummy
3
+:email syswizard@redhat.biz
4
+:name Red Hat, Inc.
5
+%
0 6
new file mode 100755
... ...
@@ -0,0 +1,27 @@
1
+:title Too Many Damn Dead Birds
2
+:erm There's just too many damn birds on my lawn! I've been wearing this red hat for about a week, and there's no way it's coincidence!
3
+:-er ĵenga.p
4
+:-ee redhat
5
+:status resolved
6
+:eem I'm sorry you feel that way.
7
+:erm Well, yea, me too. So, wtf are y'all gonna do about this?
8
+:eem You do know we don't <i>actually</i> sell red hats, right?
9
+:erm OK, yea, sure, Mr. Fucking-Rocket-Scientist, Mr. A-Company-Called-Red-Hat-Doesn't-Sell-Hats. GD idiot.
10
+:eem H-hey… I can only take so much… please listen, ma'am…
11
+:erm GET THE FUCKING BIRDS OFF OF MY LAWN
12
+:eem Well… we don't sell birds, either, I'm afraid…
13
+:eem I'll just mark this as "resolved," I guess…
14
+:erm DON'T YOU DARE!
15
+%
16
+:title Yall are rude, srsly
17
+:erm I was just talking to one of your customer support nerds, and they were *really* rude. I think they called me a "bitch." What a twat.
18
+:-er ĵenga.p
19
+:-ee redhat
20
+:status open
21
+:eem … you do realize I'm the same "nerd" from eariler, right?
22
+:eem … and that you did, indeed, just call me a "twat" to my metaphorical face?
23
+:erm Look, I just want the birds taken care of.
24
+:eem We can't take care of what's dead, ma'am. It's impossible.
25
+:eem Also, we do software, not bird-raising.
26
+:erm jfc I mean I want them GONE
27
+%
0 28
new file mode 100644
... ...
@@ -0,0 +1,227 @@
1
+<?php
2
+
3
+function complaint_create($er_username, $ee_username, $title, $desc)
4
+{
5
+	$erl = ":-er " . $er_username;
6
+	$eel = ":-ee " . $ee_username;
7
+	$titlel = ":title " . $title;
8
+	$descl = ":erm " . $desc;
9
+
10
+	$complaint_block = implode("\n", array($erl, $eel, $titlel, $descl, "%"));
11
+
12
+	return $complaint_block;
13
+}
14
+
15
+
16
+
17
+function complaint_block($string, $title)
18
+{
19
+	$block_list = line_split($string);
20
+
21
+	return $block_list[complaint_block_pos($string, $title)];
22
+}
23
+
24
+function complaint_block_pos($string, $title)
25
+{
26
+	$block_list = line_split($string);
27
+	$i = 0;
28
+
29
+
30
+	while (colon_value($block_list[$i], "title") != $title)
31
+	{
32
+		$i++;
33
+	}
34
+
35
+	return $i;
36
+}
37
+
38
+
39
+function complaint_block_replace($string, $title, $new_block)
40
+{
41
+	$block_list = line_split($string);
42
+	$old_block = complaint_block($string, $title);
43
+	$block_pos = complaint_block_pos($string, $title);
44
+
45
+	$block_list[$block_pos] = $new_block;
46
+
47
+	return implode("\n%\n", $block_list);
48
+}
49
+
50
+function complaint_block_append($string, $title, $line)
51
+{
52
+	$old_block = complaint_block($string, $title);
53
+	$new_block = $old_block . "\n" . $line;
54
+
55
+	return complaint_block_replace($string, $title, $new_block);
56
+}
57
+
58
+
59
+// STRING STRING --> STRING
60
+//	Return a user's name
61
+function complaint_er($string)
62
+{
63
+	return colon_value($string, "-er");
64
+}
65
+
66
+// STRING STRING --> STRING
67
+//	Return a user's name
68
+function complaint_ee($string)
69
+{
70
+	return colon_value($string, "-ee");
71
+}
72
+
73
+// STRING STRING --> STRING
74
+//	Return a user's name
75
+function complaint_title($string)
76
+{
77
+	return colon_value($string, "title");
78
+}
79
+
80
+// STRING STRING --> STRING
81
+//	Return a user's name
82
+function complaint_desc($string)
83
+{
84
+	return colon_value($string, "desc");
85
+}
86
+
87
+function complaint_status($string)
88
+{
89
+	return colon_value($string, "status");
90
+}
91
+
92
+// STRING STRING --> STRING
93
+//	Return a user's email
94
+function complaint_er_name($complaint_string, $users_string)
95
+{
96
+	$username = complaint_er($complaint_string);
97
+	$user_block = user_block($users_string, $username);
98
+	return user_name($user_block, $username);
99
+}
100
+
101
+
102
+// STRING STRING --> STRING
103
+//	Return a user's password
104
+function complaint_ee_name($complaint_string, $companies_string)
105
+{
106
+	$username = complaint_ee($complaint_string);
107
+	$user_block = user_block($companies_string, $username);
108
+	return user_name($user_block, $username);
109
+}
110
+
111
+function complaints_with_er($string, $username)
112
+{
113
+	return preg_grep("/:-er " . $username . "/", line_split($string));
114
+}
115
+
116
+function complaints_with_ee($string, $username)
117
+{
118
+	return preg_grep("/:-ee " . $username . "/", line_split($string));
119
+}
120
+
121
+
122
+function html_complaints_list($complaints)
123
+{
124
+	$stack = "";
125
+
126
+
127
+	for ($i=0;$i < count($complaints);$i++)
128
+	{
129
+		$complaint = $complaints[$i];
130
+		$stack = $stack
131
+			. "<p class='complaint'><a href='old/?q="
132
+			. complaint_title($complaint)
133
+			. "'><h3>"
134
+			. complaint_title($complaint)
135
+			. "</h3></a>\n";
136
+
137
+		$stack = $stack
138
+			. "<p><b>Complaintant:</b> "
139
+			. complaint_er_name($complaint)
140
+			. "</p>\n";
141
+		$stack = $stack
142
+			. "<p><b>Complaintee:</b> "
143
+			. complaint_ee_name($complaint)
144
+			. "</p>\n";
145
+		$stack = $stack
146
+			."</p><hr>\n";
147
+	}	
148
+
149
+	return $stack;
150
+}
151
+
152
+function complaint_messages($string)
153
+{
154
+	return array_values(preg_grep("/:e.m /", line_list($string)));
155
+}
156
+
157
+
158
+function html_complaint_title($complaint, $users, $companies)
159
+{
160
+	$er_name = complaint_er_name($complaint, $users);
161
+	$ee_name = complaint_ee_name($complaint, $companies);
162
+	$status = complaint_status($complaint);
163
+	$stack = "";
164
+
165
+	$stack = $stack
166
+		. "<h2>" . complaint_title($complaint) . "</h2>\n";
167
+	$stack = $stack
168
+		. "<h3>Status: " . $status . "</h3>\n"
169
+		. "<h3>Concerning complaintant " . $er_name . " and "
170
+		. "complaintee " . $ee_name . ".</h3>\n"
171
+		. "<hr>\n";
172
+
173
+	return $stack;
174
+}
175
+
176
+function message_sender($message, $er_name, $ee_name)
177
+{
178
+	$sender = preg_replace("/ .*/", "", $message);
179
+	
180
+	if ($sender == ":eem")
181
+	{
182
+		return $ee_name;
183
+	}
184
+	else
185
+	{
186
+		return $er_name;
187
+	}
188
+}
189
+
190
+function message_raw($message)
191
+{
192
+	return preg_replace("/:e.m /", "", $message);
193
+}
194
+		
195
+function html_complaint_messages($complaint, $users, $companies)
196
+{
197
+	$er_name = complaint_er_name($complaint, $users);
198
+	$ee_name = complaint_ee_name($complaint, $companies);
199
+	$messages = complaint_messages($complaint);
200
+	$stack = "";
201
+
202
+	for ($i=0;$i < count($messages);$i++)
203
+	{
204
+		$message = $messages[$i];
205
+		$raw = message_raw($message);
206
+		$person = message_sender($message,  $er_name, $ee_name);
207
+		$stack = $stack
208
+			. "<p class='message'><b>" . $person . "</b> "
209
+			. $raw
210
+			. "</p>\n";
211
+	}
212
+
213
+	return $stack;
214
+}
215
+
216
+
217
+function complaint_response($title, $message, $user)
218
+{
219
+	$queja_file = "local/quejas.txt";
220
+	$complaints = file_read(root($queja_file));
221
+
222
+	file_write(root($queja_file),
223
+		complaint_block_append($complaints, $title,
224
+					":" . $user . " " . $message));
225
+}
226
+
227
+?>
0 228
new file mode 100755
... ...
@@ -0,0 +1,5 @@
1
+:username redhat
2
+:password itsatreblenotafedoradummy
3
+:email syswizard@redhat.biz
4
+:name Red Hat, Inc.
5
+%
0 6
new file mode 100755
... ...
@@ -0,0 +1,25 @@
1
+:title Too Many Damn Dead Birds
2
+:desc There's just too many damn birds on my lawn! I've been wearing this red hat for about a week, and there's no way it's coincidence!
3
+:-er ĵenga.p
4
+:-ee redhat
5
+:status resolved
6
+:eem I'm sorry you feel that way.
7
+:erm Well, yea, me too. So, wtf are y'all gonna do about this?
8
+:eem You do know we don't <i>actually</i> sell red hats, right?
9
+:erm OK, yea, sure, Mr. Fucking-Rocket-Scientist, Mr. A-Company-Called-Red-Hat-Doesn't-Sell-Hats. GD idiot.
10
+:eem H-hey… I can only take so much… please listen, ma'am…
11
+:erm GET THE FUCKING BIRDS OFF OF MY LAWN
12
+:eem Well… we don't sell birds, either, I'm afraid…
13
+:eem I'll just mark this as "resolved," I guess…
14
+%
15
+:title Y'all are rude, srsly
16
+:desc I was just talking to one of your customer support nerds, and they were *really* rude. I think they called me a "bitch." What a twat.
17
+:-er ĵenga.p
18
+:-ee redhat
19
+:eem … you do realize I'm the same "nerd" from eariler, right?
20
+:eem … and that you did, indeed, just call me a "twat" to my metaphorical face?
21
+:erm Look, I just want the birds taken care of.
22
+:eem We can't take care of what's dead, ma'am. It's impossible.
23
+:eem Also, we do software, not bird-raising.
24
+:erm jfc I mean I want them GONE
25
+%
0 26
new file mode 100755
... ...
@@ -0,0 +1,5 @@
1
+:username ĵenga.p
2
+:password iusethesamepasswordforeverythingandjustgotowned
3
+:email luser@yahoo.co.uk.cn
4
+:name Jenga Phoenix
5
+%
... ...
@@ -21,6 +21,8 @@ function root($path)
21 21
 include("array.php");
22 22
 include("file.php");
23 23
 include("user.php");
24
+include("company.php");
25
+include("complaint.php");
24 26
 include("string/colon.php");
25 27
 include("string/line.php");
26 28
 
... ...
@@ -29,6 +29,8 @@ function redirect($path)
29 29
 include(root("res/bib/array.php"));
30 30
 include(root("res/bib/file.php"));
31 31
 include(root("res/bib/user.php"));
32
+include(root("res/bib/company.php"));
33
+include(root("res/bib/complaint.php"));
32 34
 include(root("res/bib/string/colon.php"));
33 35
 include(root("res/bib/string/line.php"));
34 36
 
... ...
@@ -2,7 +2,10 @@
2 2
 
3 3
 include("principal-local.php");
4 4
 
5
+$users = file_read("data/users.txt");
6
+$companies = file_read("data/companies.txt");
7
+$complaints = file_read("data/quejas.txt");
5 8
 
6
-$colon_string = file_read("test.txt");
9
+print_r(complaints_with_er($complaints, "renga.p"));
7 10
 
8
-echo user_block($colon_string, "bardos");
11
+?>
... ...
@@ -20,7 +20,7 @@ function user_block($string, $username)
20 20
 	$i = 0;
21 21
 
22 22
 
23
-	while (colon_value($block_list[$i], "username") != $username)
23
+	while (colon_value($block_list[$i], "username") != $username && $i > count($block_list))
24 24
 	{
25 25
 		$i++;
26 26
 	}
... ...
@@ -19,6 +19,7 @@ else
19 19
 	if (user_password($users, $username) == $password)
20 20
 	{
21 21
 		setcookie("username", $username, time() + (86400 * 30), "/");
22
+		setcookie("type", "visitante", time() + (86400 * 30), "/");
22 23
 
23 24
 		setcookie("name", user_name($users, $username), time() + (86400 * 30), "/");
24 25
 		setcookie("email", user_email($users, $username), time() + (86400 * 30), "/");
... ...
@@ -6,6 +6,9 @@ include("../../res/bib/principal.php");
6 6
 // -------------------------------------
7 7
 
8 8
 setcookie("username", "", time() - (86400 * 30), "/");
9
+setcookie("name", "", time() - (86400 * 30), "/");
10
+setcookie("email", "", time() - (86400 * 30), "/");
11
+setcookie("type", "", time() - (86400 * 30), "/");
9 12
 redirect("");
10 13
 
11 14
 ?>
12 15
new file mode 100644
... ...
@@ -0,0 +1,42 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+if (!user_logged_in())
8
+{
9
+        redirect("visitante/");
10
+}
11
+else
12
+{
13
+
14
+$page_title="Quejas";
15
+include(root("res/temp/head.php"));
16
+include(root("res/temp/header.php"));
17
+
18
+$users = file_read(root("local/users.txt"));
19
+$companies = file_read(root("local/companies.txt"));
20
+$complaints = file_read(root("local/quejas.txt"));
21
+$user = user_logged_in();
22
+$user_complaints = complaints_with_er($complaints, $user);
23
+
24
+// -------------------------------------
25
+?>
26
+
27
+<h2>Your Complaints</h2>
28
+<h3><a href="new">New Complaint</a></h3>
29
+
30
+<hr>
31
+
32
+<?php
33
+
34
+echo html_complaints_list($user_complaints);
35
+
36
+?>
37
+
38
+<?php
39
+// -------------------------------------
40
+
41
+include(root("res/temp/footer.php"));
42
+}
0 43
new file mode 100644
... ...
@@ -0,0 +1,57 @@
1
+<?php
2
+
3
+include("../../../../res/config.php");
4
+include("../../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+if (!user_logged_in() || empty($_GET["q"]))
8
+{
9
+	redirect("visitante/");
10
+}
11
+else
12
+{
13
+
14
+	$complaint_title = $_GET["q"];
15
+	$page_title="Queja - " . $complaint_title;
16
+	include(root("res/temp/head.php"));
17
+	include(root("res/temp/header.php"));
18
+
19
+	$users = file_read(root("local/users.txt"));
20
+	$companies = file_read(root("local/companies.txt"));
21
+	$complaints = file_read(root("local/quejas.txt"));
22
+	$user = user_logged_in();
23
+	$complaint = complaint_block($complaints, $complaint_title);
24
+	$complaint_status = complaint_status($complaint);
25
+
26
+	// -------------------------------------
27
+
28
+	echo html_complaint_title($complaint, $users, $companies);
29
+
30
+	echo html_complaint_messages($complaint, $users, $companies);
31
+
32
+	if ($complaint_status == "open")
33
+	{
34
+		?>
35
+
36
+		<form action="private/submit.php?q=<?php echo $complaint_title; ?>" method="post" enctype="multipart/form-data">
37
+		<p>
38
+		<b>Response: </b><input type="text" placeholder="" name="message")
39
+		</p>
40
+		</form>
41
+
42
+
43
+<?php
44
+	}
45
+	else
46
+	{
47
+		?>
48
+		<p><b><i>Complaint marked as resolved.</i></b></p>
49
+		<?php
50
+	}
51
+
52
+
53
+		// -------------------------------------
54
+
55
+		include(root("res/temp/footer.php"));
56
+}
57
+?>
0 58
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+include("../../../../../res/config.php");
4
+include("../../../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$message = $_POST["message"];
9
+$queja = $_GET["q"];
10
+
11
+$users = file_read(root("local/users.txt"));
12
+$companies = file_read(root("local/companies.txt"));
13
+
14
+if (empty($message) || empty($queja))
15
+{
16
+	redirect("visitante/user/quejas/old/result/submit-incomplete.php");
17
+}
18
+else
19
+{
20
+	complaint_response($queja, $message, "erm");
21
+	redirect("visitante/user/quejas/old/?q=" . $queja);
22
+}
0 23
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+include("../../../res/config.php");
4
+include("../../../res/bib/principal.php");
5
+
6
+// -------------------------------------
7
+
8
+$page_title="LOGIN FAILURE";
9
+include(root("res/temp/head.php"));
10
+include(root("res/temp/header.php"));
11
+
12
+// -------------------------------------
13
+?>
14
+
15
+
16
+<h2>INCORRECT PASSWORD OR USERNAME.</h2>
17
+<h3>PLEASE, <a href="../index.php">TRY AGAIN</a>.</h3>
18
+
19
+
20
+<?php
21
+// -------------------------------------
22
+
23
+include(root("res/temp/footer.php"));
24
+
25
+?>