Source code of tbs_us_examples_subtpl.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
<?php
if (!isset($viewer)) $viewer = 'tbs_us_examples.php';
// Check if subscript's source is asked.
if (isset($_GET['subsrc'])) {
show_source('tbs_us_examples_subtpl_login.php');
exit;
}
// Prepare variabes
if (isset($_GET['art'])) {
$art = $_GET['art'];
} else {
$art = 0;
}
$tmpl_article = 'tbs_us_examples_subtpl_article'.$art.'.htm';
$tmpl_menu = 'tbs_us_examples_subtpl_menu.htm';
// Merging main template
include_once('../tbs_class.php');
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate('tbs_us_examples_subtpl.htm');
$TBS->Show();