-
Notifications
You must be signed in to change notification settings - Fork 1
/
sorah.php
43 lines (41 loc) · 1.27 KB
/
sorah.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
<?php
include_once 'db.php';
$exec_start = get_micro_time();
include_once 'includes/globales.php';
$queryTimer = new MicroTimer();
$SuraID = intval($_GET['id']);
$sorah_next = $SuraID + 1;
if ($SuraID == 114){
$sorah_next = $SuraID;
}
if ($SuraID > 1){
$sorah_previous = $SuraID - 1;
}else{
$sorah_previous = $SuraID;
}
$method = isset($_GET['method']) ? $_GET['method'] : 1;
$smarty->assign('method',$method);
$smarty->assign('soranames',soranames());
$smarty->assign('sound_check_sora_rd', sound_check_sora_rd($SuraID));
$smarty->assign('sound_check_sora', sound_check_sora($SuraID,1));
$smarty->assign('sorah_next', $sorah_next);
$smarty->assign('sorah_previous', $sorah_previous);
$smarty->assign('site_title',sorahname($SuraID));
$smarty->assign('Description',sorahname($SuraID));
$smarty->assign('keywords',sorahname($SuraID));
$smarty->assign('row_suras',sorah($SuraID));
$smarty->assign('row_all',ayats_sura($SuraID));
$exec_end = get_micro_time();
$timer = get_exec_time($exec_end, $exec_start);
$smarty->assign ("timer",$timer);
$queryTimer->stop();
$smarty->assign('query_time',$queryTimer);
if($active_cash ==1) {
$smarty->caching = 1; //1 or 0
$nid = (integer)($_GET['id']);
$smarty->display('sorah_view.html',$nid);
}else{
$smarty->display('sorah_view.html');
}
ob_end_flush();
?>