mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Bugtracker #3581, and decode constants in print handler
This commit is contained in:
parent
f44c6def59
commit
e8de2aae7a
@ -11,19 +11,19 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/pdf/pdf.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:34 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-01-09 22:06:22 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../../class2.php");
|
||||
$qs = explode(".", e_QUERY);
|
||||
$qs = explode(".", e_QUERY,2);
|
||||
if ($qs[0] == "") {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
$source = $qs[0];
|
||||
$parms = $qs[1];
|
||||
$parms = varset($qs[1],'');
|
||||
|
||||
$lan_file = e_PLUGIN."pdf/languages/".e_LANGUAGE.".php";
|
||||
include_once(file_exists($lan_file) ? $lan_file : e_PLUGIN."pdf/languages/English.php");
|
||||
|
14
print.php
14
print.php
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/print.php,v $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2007-02-13 22:27:33 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2008-01-09 22:06:22 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("class2.php");
|
||||
@ -23,13 +23,13 @@ $CUSTOMHEADER = "";
|
||||
$CUSTOMFOOTER = "";
|
||||
|
||||
|
||||
$qs = explode(".", e_QUERY);
|
||||
$qs = explode(".", e_QUERY,2);
|
||||
if ($qs[0] == "") {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
$source = $qs[0];
|
||||
$parms = intval($qs[1]);
|
||||
$parms = varset($qs[1],'');
|
||||
unset($qs);
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ else
|
||||
$row = $sql->db_Fetch();
|
||||
extract($row);
|
||||
define("e_PAGETITLE", $news_title);
|
||||
$news_body = $tp->toHTML($news_body, TRUE);
|
||||
$news_extended = $tp->toHTML($news_extended, TRUE);
|
||||
$news_body = $tp->toHTML($news_body, TRUE, 'BODY');
|
||||
$news_extended = $tp->toHTML($news_extended, TRUE, 'BODY');
|
||||
if ($news_author == 0)
|
||||
{
|
||||
$a_name = "e107";
|
||||
|
Loading…
x
Reference in New Issue
Block a user