Tons of changes made to the CORE. All scripts has more a less been modified. Primaril...
[Packages/TYPO3.CMS.git] / typo3 / show_rechis.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Shows information about a database or file item
29 *
30 * $Id$
31 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
32 * XHTML Compliant
33 *
34 * @author Kasper Skaarhoj <kasper@typo3.com>
35 */
36 /**
37 * [CLASS/FUNCTION INDEX of SCRIPT]
38 *
39 *
40 *
41 * 76: class SC_show_rechis
42 * 87: function init()
43 * 105: function main()
44 * 126: function printContent()
45 *
46 * TOTAL FUNCTIONS: 3
47 * (This index is automatically created/updated by the extension "extdeveval")
48 *
49 */
50
51
52 $BACK_PATH='';
53 require ($BACK_PATH.'init.php');
54 require ($BACK_PATH.'template.php');
55 require_once (PATH_t3lib.'class.t3lib_diff.php');
56 require_once (PATH_t3lib.'class.t3lib_tcemain.php');
57 require ('sysext/lang/locallang_show_rechis.php');
58 require ('class.show_rechis.inc');
59
60
61
62
63
64
65
66
67
68 /**
69 * Script Class for showing the history module of TYPO3s backend
70 *
71 * @author Kasper Skaarhoj <kasper@typo3.com>
72 * @package TYPO3
73 * @subpackage core
74 * @see class.show_rechis.inc
75 */
76 class SC_show_rechis {
77
78 // Internal:
79 var $content;
80 var $doc;
81
82 /**
83 * Initialize the module output
84 *
85 * @return void
86 */
87 function init() {
88 global $LANG;
89
90 // Create internal template object:
91 $this->doc = t3lib_div::makeInstance('mediumDoc');
92 $this->doc->docType = 'xhtml_trans';
93
94 // Start the page header:
95 $this->content.=$this->doc->startPage($LANG->getLL('title'));
96 $this->content.=$this->doc->header($LANG->getLL('title'));
97 $this->content.=$this->doc->spacer(5);
98 }
99
100 /**
101 * Generate module output
102 *
103 * @return void
104 */
105 function main() {
106 global $LANG;
107
108 // Start history object
109 $historyObj = t3lib_div::makeInstance('recordHistory');
110
111 // Get content:
112 $this->content.= $historyObj->main();
113
114 // Return link:
115 if ($historyObj->returnUrl) {
116 $link = '<a href="'.htmlspecialchars($historyObj->returnUrl).'" class="typo3-goBack"><img'.t3lib_iconWorks::skinImg('','gfx/goback.gif','width="14" height="14"').' alt="" />'.$LANG->getLL('returnLink',1).'</a>';
117 $this->content.= $this->doc->section($LANG->getLL('return'),$link,0,1);
118 }
119 }
120
121 /**
122 * Outputting the accumulated content to screen
123 *
124 * @return void
125 */
126 function printContent() {
127 $this->content.=$this->doc->spacer(8);
128 $this->content.=$this->doc->endPage();
129 echo $this->content;
130 }
131 }
132
133 // Include extension?
134 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']) {
135 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']);
136 }
137
138
139
140
141
142
143
144
145
146
147
148
149 // Make instance:
150 $SOBE = t3lib_div::makeInstance('SC_show_rechis');
151 $SOBE->init();
152 $SOBE->main();
153 $SOBE->printContent();
154 ?>