Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignore direct calls to template files.

  • Loading branch information...
commit ab345c9d9df5418b0ea0195b89ca9b7ffeb69d5f 1 parent ff6b7e6
Mike Ems authored
2  admin/templates/ajax_message.php
View
@@ -1,5 +1,5 @@
<?php
-
+if ( !defined('ABSPATH') ) exit;
if ( isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest' ) {
error_reporting(0);
while(@ob_end_clean());
5 admin/templates/metabox/ajax.php
View
@@ -1,5 +1,6 @@
-<?php
- $nonce = wp_create_nonce($this->getPlugin()->getSlug());
+<?php
+if ( !defined('ABSPATH') ) exit;
+$nonce = wp_create_nonce($this->getPlugin()->getSlug());
?><script type="text/javascript">
jQuery(document).ready(function($) {
var loading = $('<img alt="Loading..." src="<?php echo admin_url('/images/wpspin_light.gif'); ?>" class="loading" />');
3  admin/templates/metabox/domain_mapping.php
View
@@ -1,3 +1,6 @@
+<?php
+if ( !defined('ABSPATH') ) exit;
+?>
<form name="<?php echo $this->getPlugin()->getSlug(); ?>_domain_mapping_form" id="<?php echo $this->getPlugin()->getSlug(); ?>_domain_mapping_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<?php wp_nonce_field($this->getPlugin()->getSlug()); ?>
<input type="hidden" name="action" id="action" value="" />
3  admin/templates/metabox/filters.php
View
@@ -1,3 +1,6 @@
+<?php
+if ( !defined('ABSPATH') ) exit;
+?>
<form name="<?php echo $this->getPlugin()->getSlug(); ?>_filters_form" id="<?php echo $this->getPlugin()->getSlug(); ?>_filters_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<?php wp_nonce_field($this->getPlugin()->getSlug()); ?>
<input type="hidden" name="action" id="action" value="" />
3  admin/templates/metabox/network.php
View
@@ -1,3 +1,6 @@
+<?php
+if ( !defined('ABSPATH') ) exit;
+?>
<form name="<?php echo $this->getPlugin()->getSlug(); ?>_network_settings_form" id="<?php echo $this->getPlugin()->getSlug(); ?>_network_settings_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<?php wp_nonce_field($this->getPlugin()->getSlug()); ?>
<input type="hidden" name="action" id="action" value="" />
2  admin/templates/metabox/post.php
View
@@ -1,4 +1,6 @@
<?php
+if ( !defined('ABSPATH') ) exit;
+
global $post;
if ( $post->ID ) {
17 admin/templates/metabox/settings.php
View
@@ -1,11 +1,14 @@
<?php
- $count = 1; // Used to restrict str_replace count
- $ssl_host = clone $this->getPlugin()->getHttpsUrl();
- $ssl_host = $ssl_host->setPort('')->setScheme('')->toString();
- if ( $this->getPlugin()->getHttpUrl()->getPath() != '/' ) {
- $ssl_host = str_replace($this->getPlugin()->getHttpUrl()->getPath(), '', $ssl_host, $count);
- }
- $ssl_host = rtrim($ssl_host, '/');
+
+if ( !defined('ABSPATH') ) exit;
+
+$count = 1; // Used to restrict str_replace count
+$ssl_host = clone $this->getPlugin()->getHttpsUrl();
+$ssl_host = $ssl_host->setPort('')->setScheme('')->toString();
+if ( $this->getPlugin()->getHttpUrl()->getPath() != '/' ) {
+ $ssl_host = str_replace($this->getPlugin()->getHttpUrl()->getPath(), '', $ssl_host, $count);
+}
+$ssl_host = rtrim($ssl_host, '/');
?>
<form name="<?php echo $this->getPlugin()->getSlug(); ?>_settings_form" id="<?php echo $this->getPlugin()->getSlug(); ?>_settings_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
<?php wp_nonce_field($this->getPlugin()->getSlug()); ?>
1  admin/templates/network.php
View
@@ -1,4 +1,5 @@
<?php
+if ( !defined('ABSPATH') ) exit;
require_once('../includes/template.php'); // WordPress Dashboard Functions
?>
1  admin/templates/settings.php
View
@@ -1,4 +1,5 @@
<?php
+if ( !defined('ABSPATH') ) exit;
require_once('includes/template.php'); // WordPress Dashboard Functions
?>
Please sign in to comment.
Something went wrong with that request. Please try again.