-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdivegallery.php
executable file
·51 lines (43 loc) · 1.3 KB
/
divegallery.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
44
45
46
47
48
49
50
51
<?php
/**
* Filename: divegallery.php
* Function: This file displays all images available to phpDivingLog.
* @author Rob Lensen <[email protected]>
* @package phpdivinglog
* @version $Rev: 172 $
* Last Modified: $Date: 2007-11-30 15:17:52 +0100 (Fri, 30 Nov 2007) $
*
* For use with Diving Log by Sven Knoch - http://www.divinglog.de
*
*/
$config_file = "./config.inc.php";
require_once($config_file);
$request = new HandleRequest();
$request->set_request_uri($_SERVER['REQUEST_URI']);
$request->set_file_depth(0);
$request->handle_url();
$links = new TopLevelMenu($request);
/**
* Create a new class Divestats with info from the HandleRequest class
*/
$divegallery = new DivePictures();
$divegallery->set_divegallery_info($request);
$result = $divegallery->get_divegallery_info();
global $_config;
// Display the Dive List
$links->get_ovv_links();
// Get the page header
$pagetitle = $_lang['dive_gallery'];
$t->assign('pagetitle', $pagetitle);
$t->assign('colspanlinks', '4');
// Dive Gallery
$divegallery->set_all_dive_pictures();
//$dbinfo = parse_mysql_query('dbinfo.sql');
if ($_config['embed_mode'] == TRUE) {
// Get the HTML output and send it to the requesting
include('header.php');
$t->display('divegallery.tpl');
include('footer.php');
} else {
$t->display('divegallery.tpl');
}