PDF Embedder Premium Secure plugin provides the same simple but elegant viewer for your website visitors, with the added protection that
it is difficult for users to download or print the original PDF document.', 'pdf-embedder'); ?>
wp-pdf.com for more details and purchase options.', 'pdf-embedder'), 'http://wp-pdf.com/secure/?utm_source=PDF%20Settings%20Secure&utm_medium=freemium&utm_campaign=Freemium' ); ?>
PLUGIN_VERSION;
return $newinput;
}
protected function get_error_string($fielderror) {
$local_error_strings = Array(
'pdfemb_width|widtherror' => __('Width must be "max" or an integer (number of pixels)', 'pdf-embedder'),
'pdfemb_height|heighterror' => __('Height must be "max" or an integer (number of pixels)', 'pdf-embedder')
);
if (isset($local_error_strings[$fielderror])) {
return $local_error_strings[$fielderror];
}
return __('Unspecified error', 'pdf-embedder');
}
public function pdfemb_save_network_options() {
check_admin_referer( $this->get_options_pagename().'-options' );
if (isset($_POST[$this->get_options_name()]) && is_array($_POST[$this->get_options_name()])) {
$inoptions = $_POST[$this->get_options_name()];
$outoptions = $this->pdfemb_options_validate($inoptions);
$error_code = Array();
$error_setting = Array();
foreach (get_settings_errors() as $e) {
if (is_array($e) && isset($e['code']) && isset($e['setting'])) {
$error_code[] = $e['code'];
$error_setting[] = $e['setting'];
}
}
if ($this->is_multisite_and_network_activated()) {
update_site_option( $this->get_options_name(), $outoptions );
}
else {
update_option( $this->get_options_name(), $outoptions );
}
// redirect to settings page in network
wp_redirect(
add_query_arg(
array( 'page' => $this->get_options_menuname(),
'updated' => true,
'error_setting' => $error_setting,
'error_code' => $error_code ),
network_admin_url( 'admin.php' )
)
);
exit;
}
}
protected function pdfemb_options_do_network_errors() {
if (isset($_REQUEST['updated']) && $_REQUEST['updated']) {
?>
0 && count($error_code) == count($error_setting)) {
for ($i=0; $i