Here is the page I'm requesting with that EXACT php code:-
http://www.webforumz.com/pagecontent...page=STATICSEO
Here is the template which is there as a test:-
Product: vBulletin
Style: Default Style
Title: STATICSEO
Template:
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>test</title>
$headinclude
</head>
<body>
$header
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Title</td>
</tr>
<tr>
<td class="alt1">Text</td>
</tr>
</table>
$footer
</body>
</html>
I'm using vB 3.5.
Here is the php again just for my sanity:-
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// pre-cache templates used by all actions
$reqpage = $_GET['reqpage'];
$globaltemplates = array(
$reqpage,
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// Static Pages
eval('print_output("' . fetch_template($reqpage) . '");');
?>
Weird, huh
I can't understand why this is not working.
Ok.... this is really weird..
If I change the last line so it doesnt use a variable, eg:-
PHP Code:
eval('print_output("' . fetch_template('STATICSEO') . '");');
it works fine...
Yet if I use it like this:-
PHP Code:
eval('print_output("' . fetch_template($reqpage) . '");');
It does work...even if I user this in place of the get: $reqpage="STATICSEO";
The last line is obviously screwing things up a little.
Any ideas?