Kyberia v1.0
[mirrors/Kyberia-bloodline.git] / inc / hypertext.inc
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 <?php
33 include('kyberia.inc');
34 class CLASS_HYPERTEXT extends CLASS_KYBERIA {
35
36
37 function CLASS_HYPERTEXT() {
38 $this->CLASS_KYBERIA();
39 }
40
41 function explodeText($id) {
42 $set=$this->query("SELECT text1 from articles where id_article='$id'");
43 $set->next();
44 $text=$set->getstring("text1");
45 $text=str_replace("."," ",$text);
46 $text=str_replace(","," ",$text);
47 $text=str_replace("?"," ",$text);
48 $bomb=explode(" ",$text);
49 foreach ($bomb as $slovo) {
50 if (strlen($slovo)>4 AND !strstr($slovo,">") AND !strstr($slovo,"<"))$slova[]=$slovo;
51 }
52 echo "<table>";
53 foreach ($slova as $slovo) {
54 echo "<tr><Td>$id</td><Td>$slovo</td></tr>";
55 }
56 }
57 // >------------------------------koniec metod---------------<
58 }
59 ?>
This page took 0.335636 seconds and 4 git commands to generate.