-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkereso.php
86 lines (79 loc) · 3.79 KB
/
kereso.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
<!-- <!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MAITE - Keresőmotor</title>
</head>
<style>
* {
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#hibakod {
font-size: 23px;
}
#hiba {
font-size: 17px;
}
#vissza {
font-size: 17px;
color: darkblue;
}
#vissza:visited {
font-size: 17px;
color: darkblue;
}
</style> -->
<?php
if (isset($_GET['k'])) {
$kereses = $_GET['k'];
$str = mb_strtolower($kereses);
$essze = array("essze", "esszé", "esszé író", "esszéíró", "fogalmazás", "fogalmazas", "fogalmazás író");
$szoveges = array("matek","matematika", "matek gyakorlás", "matek gyakorlas", "Szöveges feladatok", "Szöveges feladat", "matematika feladat", "matematika feladatok", "feladat", "feladatok", "feladatos");
$gyakorlas = array("gyakorlás", "gyakorlas", "gyakorló feladatok", "gyakorlo feladatok", "feladatok");
$fordito = array("fordító", "fordito", "forditas", "fordítás");
$email = array("email", "e-mail", "ímél", "imel", "imél", "ímel");
$edzesterv = array("edzésterv", "edzesterv", "terv", "edzes", "terv", "edzésrend", "rend", "edzesrend");
$kodolo = array("kódoló", "kód", "kódolás", "kod", "kodolo", "code", "cod");
$kod_hibakereso = array("bug kereso", "bug kereső","bugkereső", "bug", "hibakereső", "kód hibakereső", "hibakereso", "hiba", "kod hibakereso");
$profil = array("profil", "profile","profilom","account","fiók","fiókom");
// $nev = array("név","profilnév","profilnev","nev","név módosítása","nev modositasa","felhasználónév","felhasznalonev");
// $jelszo = array("jelszó","jelszo","jelszó módosítása","jelszo modositasa","password");
// $elozmenyek = array("előzmények","elozmenyek","history","előzmény", "elozmeny");
$kezdolap = array("kezdolap", "kezdlap", "kezdőlap", "start", "startlap");
$szovegbolkep = array("szoveg","szovegbolkep","szovegbol kep","szövegből kép","kép","festés","rajz","rajzolás","alkotás","kép generálás","generál","generálás");
if (in_array($str, $essze)) {
header('Location: alkalmazasok/essze');
} else if (in_array($str, $szoveges)){
header('Location: alkalmazasok/szoveges');
} else if (in_array($str, $gyakorlas)){
header('Location: alkalmazasok/gyakorlas');
} else if (in_array($str, $fordito)){
header('Location: alkalmazasok/fordito');
} else if (in_array($str, $email)){
header('Location: alkalmazasok/email');
} else if (in_array($str, $edzesterv)){
header('Location: alkalmazasok/edzesterv');
} else if (in_array($str, $kodolo)){
header('Location: alkalmazasok/kodolo');
} else if (in_array($str, $kod_hibakereso)){
header('Location: alkalmazasok/kod_hibakereso');
} else if (in_array($str, $profil)){
header('Location: profil');
// } else if (in_array($str, $nev)){
// header('Location: profil/nev');
// } else if (in_array($str, $jelszo)){
// header('Location: profil/jelszo');
// } else if (in_array($str, $elozmenyek)){
// header('Location: profil/elozmenyek');
} else if (in_array($str, $kezdolap)){
header('Location: kezdolap.php');
} else if (in_array($str, $szovegbolkep)){
header('Location: alkalmazasok/szovegbolkep');
} else header('location:hiba.php');
}
else header('location:keres_hiba.php');
// else echo '<p id="hibakod">400 Bad request</p><p id="hiba">Hibásan, vagy nem lett megadva a paraméter.</p><p id="vissza"><a href="index.html"><i>Vissza a főoldalra</i></a></p>';
?>