MyBB Community Forums

Full Version: MyBB-PageManager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm having a bit of a problem.

I'm using the following code in a Page, but as a result I'm not able to use 's in the content. This is a problem because the naming conventions in my sites  RPG include 's. What changes can I make to the code so that I can use apostrophes without breaking it?


<?php
global $headerinclude, $header, $theme, $templates, $footer, $db;
eval("\$guidebook_navigation = \"".$templates->get("guidebook_navigation")."\";");
add_breadcrumb($pages['name']);
$template='<html><head><title>'.$mybb->settings['bbname']." - ".$pages['name'].'</title>{$headerinclude}</head><body>{$header}


<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="trow1" width="25%" valign="top">
{$guidebook_navigation}
</td>
<td class="trow1" valign="top">

GUIDEBOOK PAGE CONTENT

</td>
</tr>
</table>



{$footer}</body></html>';
$template=str_replace("\'", "'", addslashes($template));
eval("\$page=\"".$template."\";");
output_page($page);
?>
Thank you!