forked from simongameryt16/net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buscaanime.php
41 lines (38 loc) · 983 Bytes
/
buscaanime.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
<?php
require 'static/php/system/database.php';
require 'static/php/system/config.php';
?>
<?php
$nome = $_POST['nomeanime'];
?>
<?Php
if(empty($nome)){
echo "";
}else{?>
<?php
$animels2 = DBRead( 'series', "WHERE name LIKE '%$nome%' ORDER BY id DESC LIMIT 9" );
if (!$animels2)
echo "";
else
foreach ($animels2 as $animel):
?>
<?php
$videoid = $animel['id'];
$videols2 = DBRead( 'videos', "WHERE id and idserie = '". $videoid ."' ORDER BY id ASC LIMIT 1" );
if (!$videols2)
echo "";
else
foreach ($videols2 as $videol):
?>
<a class="eoq" href='/watch.php?id=<?php echo $videol['id']; ?>'><li class='buscaright'><img src='<?php echo $animel['foto']; ?>' class='avatar6'/><div class='name'>
<?php
$str2 = nl2br( $animel['name'] );
$len2 = strlen( $str2 );
$max2 = 25;
if( $len2 <= $max2 )
echo $str2;
else
echo substr( $str2, 0, $max2 ) . '...'?>
</div></li></a>
<?php endforeach; endforeach;?>
<?php }?>