-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (25 loc) · 763 Bytes
/
index.php
File metadata and controls
27 lines (25 loc) · 763 Bytes
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
<?php
$templatelist="index_table,videos_cat,videos_sub,videos_subb,";
include "globals.php";
$titleetc="ÇáÕÝÍÉ ÇáÑÆíÓíÉ";
$query=$DB->query("select m.*,c.title as ctitle from movies m left join cat c on(c.id=m.cat_id) order by id desc limit 0,1");
while($m=$DB->fetch_array($query))
{
$TP->WebTemp("index_table");
}
$query=$DB->query("select m.*,c.title as ctitle from movies m left join cat c on(c.id=m.cat_id) order by rand() desc limit 0,8");
while($m=$DB->fetch_array($query))
{
$i++;
$sub_v.=$TP->GetTemp("videos_sub");
$sub_v2.=$TP->GetTemp("videos_subb");
if($i==4)
{
$sub_v.="</tr><tr>".$sub_v2."</tr><tr><td colspan=4 class=\"alt2\"> </td></tr><tr>";
$sub_v2="";
}
}
$sub_v.="</tr><tr>".$sub_v2;
$TP->WebTemp("videos_cat");
print_page();
?>