-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.php
56 lines (40 loc) · 1.37 KB
/
head.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
52
53
54
<?php
include(WB_PATH.'/modules/argoscalendar/info.php');
include(WB_PATH.'/modules/argoscalendar/modconfig.php');
function ArgosCalendarSetPageHtmlHead()
{
if ((isset($_GET['section_id'])))
$section_id = $_GET['section_id'];
else
$section_id = "0";
if ((isset($_GET['id'])))
$id = $_GET['id'];
else
$id = "0";
global $database;
global $wb;
global $page_id;
global $module_name;
//echo "VwgaCalenderSetPageHtmlHead procalendar: page_id=$page_id section_id=$section_id id=$id <br>";
if(isset($page_id) && isset($section_id))
{
$sections_query = $database->query("SELECT module FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND section_id = '$section_id'");
$section = $sections_query->fetchRow();
if($section['module'] == procalendar)
{
//echo "VwgaCalenderSetPageHtmlHead: Module found -> procalendar<br>";
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_procalendar_actions WHERE id = '$id' ");
$db = $query_content->fetchRow();
$TerminName = $db['name'];
if(strlen($TerminName) == 0 )
return false;
echo "<title>".PAGE_TITLE." - ".TITLE_ADD_CALENDAR." - $TerminName </title>\n";
return true;
}
else
{
//echo "VwgaCalenderSetPageHtmlHead procalendar: Module not found<br>";
}
}
return false;
}