-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfootnote.php
43 lines (34 loc) · 1.19 KB
/
footnote.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
<?
// Start timer:
list($TIMER1, $MTIMER1) = explode (' ', microtime());
$mySelf = 'index'; //!< obtain script name.
if (defined('LOADED_AS_MODULE')) { // !< as pn module
define ('QSE_BASE_DIR', './modules/QuranSE/');
define ('QSE_BASE_URL', './modules.php?op=modload&name=QuranSE&file=' . $mySelf);
define ('QSE_PN', 1);
} else {
define ('QSE_BASE_DIR', './'); //!< stand alone.
define ('QSE_BASE_URL', $myURL . $mySelf . '?x=in');
}
// Debug functions in common.inc:
GLOBAL $mdbGlobal;
$mdbGlobal->Debug = $_REQUEST['Debug']; //!< 0: inactive, 1: active.
session_start(); //!< if not started, start one!
?>
<?
require_once(QSE_BASE_DIR . "config.php");
require_once(QSE_BASE_DIR . 'include/QDisplay.class.php');
$noteTable['id'] = "noteIndonesia";
$no = $_REQUEST['no'];
if ($lang == "") $lang = "id";
if ($no == "") $no = 1;
$SQL = "SELECT teks FROM `$noteTable[$lang]` WHERE no=$no";
$result = mysql_query ($SQL);
if (!$result) die(mysql_error());
list ($teks) = mysql_fetch_row ($result);
// format footnote:
QDisplay :: footnoteLink($teks, $lang);
$TITLE = "Footnote $no";
$QURAN = "<p class=\"rOddLang\">$no: $teks</p>";
require_once(QSE_BASE_DIR . "include/randomframe.inc.php");
?>