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