small fixes so big things work
This commit is contained in:
parent
8323580a60
commit
f3c2fa1e1c
@ -19,9 +19,9 @@ function __comicpress_init() {
|
|||||||
$addons = array();
|
$addons = array();
|
||||||
|
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
$_POST = stripslashes_deep($_POST);
|
$_POST = array_map('stripslashes_deep', $_POST);
|
||||||
$_GET = stripslashes_deep($_GET);
|
$_GET = array_map('stripslashes_deep', $_GET);
|
||||||
$_REQUEST = stripslashes_deep($_REQUEST);
|
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_dir($addons_dir = (dirname(__FILE__) . '/addons'))) {
|
if (is_dir($addons_dir = (dirname(__FILE__) . '/addons'))) {
|
||||||
@ -98,7 +98,7 @@ function include_partial($partials = '') {
|
|||||||
|
|
||||||
if (($result = $comicpress->get_options_partial($partials)) !== false) {
|
if (($result = $comicpress->get_options_partial($partials)) !== false) {
|
||||||
list($target, $code) = $result;
|
list($target, $code) = $result;
|
||||||
ob_start(); eval('?>' . $code . '<?'); $content = ob_get_clean();
|
ob_start(); eval(' ?>' . $code . '<?php '); $content = ob_get_clean();
|
||||||
} else {
|
} else {
|
||||||
$target = $comicpress->get_partial_path($partials);
|
$target = $comicpress->get_partial_path($partials);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user