-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcopyright.php
56 lines (41 loc) · 1.61 KB
/
copyright.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
55
56
<?php
/*
* hawpedia article copyright page
* $Date$
*/
require_once('config.php');
require_once('hawpedia.php');
require_once('hawhaw/hawhaw.inc');
start_hawpedia_session(); // set session params
require('lang/' . $_SESSION['language'] . '/copyright_text.php');
$deck = new HAW_deck(HAWIKI_TITLE, HAW_ALIGN_CENTER);
set_deck_properties($deck);
$emptyLine = new HAW_text("");
$wp_image = new HAW_image(HAWPEDIA_ICON . ".wbmp",
HAWPEDIA_ICON . ".gif", "");
$wp_image->set_html_width(HAWPEDIA_ICON_WIDTH);
$wp_image->set_html_height(HAWPEDIA_ICON_HEIGHT);
$deck->add_image($wp_image);
$deck->add_text($emptyLine);
$title = new HAW_text($copyright['Copyright'], HAW_TEXTFORMAT_BOLD);
$deck->add_text($title);
$deck->add_text($emptyLine);
$text = new HAW_text($copyright['gfdlText']);
$deck->add_text($text);
$deck->add_text($emptyLine);
if (strncmp($copyright['gfdlLinkPage'], 'http', 4) != 0)
$gfdlUrl = "transcode.php?go=" . urlencode($copyright['gfdlLinkPage']);
else
$gfdlUrl = $copyright['gfdlLinkPage'];
$gfdlLink = new HAW_link($copyright['gfdlLinkText'], $gfdlUrl);
$deck->add_link($gfdlLink);
$sourceLink = new HAW_link($copyright['Source'],
"http://" . $_SESSION['language'] . ".wikipedia.org/wiki/" . $_GET['article']);
$deck->add_link($sourceLink);
$historyLink = new HAW_link($copyright['History'],
"http://" . $_SESSION['language'] . ".wikipedia.org/w/index.php?action=history&title=" . $_GET['article']);
$deck->add_link($historyLink);
$homelink = new HAW_link(hawtra("Home"), "index.php");
$deck->add_link($homelink);
$deck->create_page();
?>