first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1 @@
.idea

View File

@@ -0,0 +1,7 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
interface Postman_Notify {
public function send_message( $message );
}

View File

@@ -0,0 +1,29 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class PostmanMailNotify implements Postman_Notify {
public function send_message($message)
{
$notification_emails = PostmanNotifyOptions::getInstance()->get_notification_email();
/**
* Filters The Notification Emails
*
* @notification_emails String
*/
$notification_emails = apply_filters( 'post_smtp_notify_email', $notification_emails );
$domain = get_bloginfo( 'url' );
$notification_emails = explode( ',', $notification_emails );
//Lets start informing authorities ;')
foreach( $notification_emails as $to_email ) {
mail( $to_email, "{$domain}: " . __( 'Post SMTP email error', 'post-smtp' ), $message , '', "-f{$to_email}" );
}
}
}

View File

@@ -0,0 +1,374 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
require_once 'INotify.php';
require_once 'PostmanMailNotify.php';
require_once 'PostmanPushoverNotify.php';
require_once 'PostmanSlackNotify.php';
require_once 'PostmanNotifyOptions.php';
class PostmanNotify {
const NOTIFICATIONS_OPTIONS = 'postman_notifications_options';
const NOTIFICATIONS_SECTION = 'postman_notifications_section';
const NOTIFICATIONS_PUSHOVER_CRED = 'postman_pushover_cred';
const NOTIFICATIONS_SLACK_CRED = 'postman_slack_cred';
const CHROME_EXTENSION = 'postman_chrome_extension';
const NOTIFICATION_EMAIL = 'notification_email';
private $options;
public function __construct() {
$this->options = PostmanNotifyOptions::getInstance();
add_filter( 'post_smtp_admin_tabs', array( $this, 'tabs' ) );
add_action( 'post_smtp_settings_menu', array( $this, 'menu' ) );
add_action( 'post_smtp_settings_fields', array( $this, 'settings' ) );
add_action( 'post_smtp_on_failed', array( $this, 'notify' ), 10, 5 );
add_filter( 'post_smtp_sanitize', array( $this, 'sanitize' ), 10, 3 );
}
public function menu() {
print '<section id="notifications">';
do_settings_sections( self::NOTIFICATIONS_OPTIONS );
$currentKey = $this->options->getNotificationService();
$pushover = $currentKey == 'pushover' ? 'block' : 'none';
$slack = $currentKey == 'slack' ? 'block' : 'none';
$notification_email = $currentKey == 'default' ? 'block' : 'none';
echo '<div id="email_notify" style="display: '.$notification_email.';">';
do_settings_sections( self::NOTIFICATION_EMAIL );
echo '</div>';
echo '<div id="pushover_cred" style="display: ' . $pushover . ';">';
do_settings_sections( self::NOTIFICATIONS_PUSHOVER_CRED );
echo '</div>';
echo '<div id="slack_cred" style="display: ' . $slack . ';">';
do_settings_sections( self::NOTIFICATIONS_SLACK_CRED );
echo '</div>';
do_action( 'post_smtp_notification_settings' );
do_settings_sections( self::CHROME_EXTENSION );
print '</section>';
}
public function sanitize($new_input, $input, $sanitizer) {
// Notifications
$sanitizer->sanitizeString( 'Pushover Service', PostmanNotifyOptions::NOTIFICATION_SERVICE, $input, $new_input, $this->options->getNotificationService() );
$sanitizer->sanitizePassword( 'Pushover Username', PostmanNotifyOptions::PUSHOVER_USER, $input, $new_input, $this->options->getPushoverUser() );
$sanitizer->sanitizePassword( 'Pushover Token', PostmanNotifyOptions::PUSHOVER_TOKEN, $input, $new_input, $this->options->getPushoverToken() );
$sanitizer->sanitizePassword( 'Slack Token', PostmanNotifyOptions::SLACK_TOKEN, $input, $new_input, $this->options->getSlackToken() );
// Chrome extension
$sanitizer->sanitizeString( 'Push Chrome Extension', PostmanNotifyOptions::NOTIFICATION_USE_CHROME, $input, $new_input );
$sanitizer->sanitizePassword( 'Push Chrome Extension UID', PostmanNotifyOptions::NOTIFICATION_CHROME_UID, $input, $new_input, $this->options->getNotificationChromeUid() );
//Email Notification
$sanitizer->sanitizeString( 'Email Notification', PostmanNotifyOptions::NOTIFICATION_EMAIL, $input, $new_input, $this->options->get_notification_email() );
return $new_input;
}
public function tabs($tabs) {
$tabs['notifications'] = __( 'Notifications', 'post-smtp' );
return $tabs;
}
public function settings() {
// Notifications
add_settings_section( self::NOTIFICATIONS_SECTION, _x( 'Notifications Settings', 'Configuration Section Title', 'post-smtp' ), array(
$this,
'notification_selection',
), self::NOTIFICATIONS_OPTIONS );
// Pushover
add_settings_section( 'pushover_credentials', _x( 'Pushover Credentials', 'Configuration Section Title', 'post-smtp' ), array(
$this,
'section',
), self::NOTIFICATIONS_PUSHOVER_CRED );
add_settings_field( PostmanNotifyOptions::PUSHOVER_USER, _x( 'Pushover User Key', 'Configuration Input Field', 'post-smtp' ), array(
$this,
'pushover_user_callback',
), self::NOTIFICATIONS_PUSHOVER_CRED, 'pushover_credentials' );
add_settings_field( PostmanNotifyOptions::PUSHOVER_TOKEN, _x( 'Pushover App Token', 'Configuration Input Field', 'post-smtp' ), array(
$this,
'pushover_token_callback',
), self::NOTIFICATIONS_PUSHOVER_CRED, 'pushover_credentials' );
// Slack
add_settings_section( 'slack_credentials', _x( 'Slack Credentials', 'Configuration Section Title', 'post-smtp' ), array(
$this,
'section',
), self::NOTIFICATIONS_SLACK_CRED );
add_settings_field( PostmanNotifyOptions::SLACK_TOKEN, _x( 'Slack Webhook', 'Configuration Input Field', 'post-smtp' ), array(
$this,
'slack_token_callback',
), self::NOTIFICATIONS_SLACK_CRED, 'slack_credentials' );
//Email Notification
add_settings_section(
'email_notification',
'',
array( $this, 'email_notification' ),
self::NOTIFICATION_EMAIL
);
add_settings_section(
'chrome_notification',
'Setup Chrome extension (optional)',
array( $this, 'chrome_extension' ),
self::CHROME_EXTENSION
);
add_settings_field( PostmanNotifyOptions::NOTIFICATION_USE_CHROME, _x( 'Push to chrome extension', 'Configuration Input Field', 'post-smtp' ), array(
$this,
'notification_use_chrome_callback',
), self::CHROME_EXTENSION, 'chrome_notification' );
add_settings_field( 'notification_chrome_uid', _x( 'Chrome Extension UID', 'Configuration Input Field', 'post-smtp' ), array(
$this,
'notification_chrome_uid_callback',
), self::CHROME_EXTENSION, 'chrome_notification' );
}
public function notification_use_chrome_callback() {
$value = $this->options->useChromeExtension() ? 'checked="checked"' : '' ;
$id = PostmanNotifyOptions::NOTIFICATION_USE_CHROME;
?>
<label class="ps-switch-1">
<input type="checkbox" name="<?php echo 'postman_options[' . esc_attr( $id ) . ']'; ?>" id="<?php echo 'input_' . esc_attr( $id ); ?>" class="<?php echo 'input_' . esc_attr( $id ); ?>" <?php echo esc_attr( $value ); ?> />
<span class="slider round"></span>
</label>
<?php
}
public function notification_chrome_uid_callback() {
printf( '<input type="password" id="input_%2$s" class="input_%2$s" name="%1$s[%2$s]" value="%3$s" />', 'postman_options', 'notification_chrome_uid', PostmanUtils::obfuscatePassword( $this->options->getNotificationChromeUid() ) );
}
public function pushover_user_callback() {
printf( '<input type="password" id="pushover_user" name="%s[%s]" value="%s" />', 'postman_options', PostmanNotifyOptions::PUSHOVER_USER, $this->options->getPushoverUser() );
}
public function pushover_token_callback() {
printf( '<input type="password" id="pushover_token" name="%s[%s]" value="%s" />', 'postman_options', PostmanNotifyOptions::PUSHOVER_TOKEN, $this->options->getPushoverToken() );
}
public function slack_token_callback() {
printf( '<input type="password" id="slack_token" name="%s[%s]" value="%s" />', 'postman_options', PostmanNotifyOptions::SLACK_TOKEN, $this->options->getSlackToken() );
echo '<a target="_blank" href="https://slack.postmansmtp.com/">' . __( 'Get your webhook URL here', 'post-smtp' ) . '</a>';
}
/**
* @param PostmanEmailLog $log
* @param PostmanMessage $message
* @param string $transcript
* @param PostmanTransport $transport
* @param string $errorMessage
*/
public function notify ($log, $postmanMessage, $transcript, $transport, $errorMessage ) {
$message = __( 'You getting this message because an error detected while delivered your email.', 'post-smtp' );
$message .= "\r\n" . sprintf( __( 'For the domain: %1$s','post-smtp' ), get_bloginfo('url') );
$message .= "\r\n" . __( 'The log to paste when you open a support issue:', 'post-smtp' ) . "\r\n";
if ( $errorMessage && ! empty( $errorMessage ) ) {
$message = $message . $errorMessage;
$notification_service = PostmanNotifyOptions::getInstance()->getNotificationService();
switch ($notification_service) {
case 'none':
$notifyer = false;
break;
case 'default':
$notifyer = new PostmanMailNotify;
break;
case 'pushover':
$notifyer = new PostmanPushoverNotify;
break;
case 'slack':
$notifyer = new PostmanSlackNotify;
break;
default:
$notifyer = new PostmanMailNotify;
}
$notifyer = apply_filters('post_smtp_notifier', $notifyer, $notification_service);
// Notifications
if ( $notifyer ) {
$notifyer->send_message($message, $log);
}
$this->push_to_chrome($errorMessage);
}
}
public function push_to_chrome($message) {
$push_chrome = PostmanNotifyOptions::getInstance()->useChromeExtension();
if ( $push_chrome ) {
$uid = PostmanNotifyOptions::getInstance()->getNotificationChromeUid();
if ( empty( $uid ) ) {
return;
}
$url = 'https://chrome.postmansmtp.com/' . $uid;
$args = array(
'body' => array(
'message' => $message
)
);
$response = wp_remote_post( $url , $args );
if ( is_wp_error( $response ) ) {
error_log( 'Chrome notification error: ' . $response->get_error_message() );
}
if ( wp_remote_retrieve_response_code( $response ) !== 200 ) {
error_log( 'Chrome notification error HTTP Error:' . wp_remote_retrieve_response_code( $response ) );
}
}
}
/**
* Section
*
* @since 2.4.0
* @version 1.0.0
*/
public function section() {
}
/**
* Notification Selection
*
* @since 2.4.0
* @version 1.0.0
*/
public function notification_selection() {
$options = apply_filters( 'post_smtp_notification_service', array(
'none' => __( 'None', 'post-smtp' ),
'default' => __( 'Admin Email', 'post-smtp' ),
'slack' => __( 'Slack', 'post-smtp' ),
'pushover' => __( 'Pushover', 'post-smtp' )
) );
$currentKey = $this->options->getNotificationService();
$logs_url = admin_url( 'admin.php?page=postman_email_log' );
echo '<p>' . sprintf(
esc_html( 'Select a service to notify you when an email delivery will fail. It helps keep track, so you can resend any such emails from the %s if required.', 'post-smtp' ),
'<a href="'.$logs_url.'" target="_blank">log section</a>'
) . '</p>';
?>
<div class="ps-notify-radios">
<?php
foreach( $options as $key => $value ) {
$checked = $currentKey == $key ? 'checked' : '';
?>
<div class="ps-notify-radio-outer">
<div class="ps-notify-radio">
<input type="radio" value="<?php echo esc_attr( $key ); ?>" name="postman_options[notification_service]" id="ps-notify-<?php echo esc_attr( $key ); ?>" class="input_notification_service" <?php echo esc_attr( $checked ); ?> />
<label for="ps-notify-<?php echo esc_attr( $key ); ?>">
<img src="<?php echo esc_url( POST_SMTP_ASSETS . "images/icons/{$key}.png" ) ?>" />
<div class="ps-notify-tick-container">
<div class="ps-notify-tick"><span class="dashicons dashicons-yes"></span></div>
</div>
</label>
</div>
<h4><?php echo esc_html( $value ); ?></h4>
</div>
<?php
}
if( !class_exists( 'PostSMTPTwilio' ) ) {
?>
<a href="https://postmansmtp.com/extensions/twilio-extension-pro/" target="_blank">
<div class="ps-notify-radio-outer">
<div class="ps-notify-radio pro-container">
<label for="ps-notify-twilio-pro">
<img src="<?php echo esc_url( POST_SMTP_ASSETS . 'images/icons/pro.png' ) ?>" class="pro-icon" />
<img src="<?php echo esc_url( POST_SMTP_ASSETS . 'images/icons/twilio.png' ) ?>" />
</label>
</div>
<h4>Twilio(SMS)</h4>
</div>
</a>
<?php
}
?>
</div>
<?php
}
/**
* Email Notification | Section call-back
*
* @since 2.4.0
* @version 1.0.0
*/
public function email_notification() {
$notification_emails = PostmanNotifyOptions::getInstance()->get_notification_email();
?>
<input type="text" name="postman_options[notification_email]" value="<?php echo esc_attr( $notification_emails ); ?>" />
<?php
}
/**
* Chrome Extenstion | Section call-back
*
* @since 2.4.0
* @version 1.0.0
*/
public function chrome_extension() {
?>
<div class="ps-chrome-extension">
<p><?php _e( 'You can also get notifications in chrome for Post SMTP in case of email delivery failure.', 'post-smtp' ) ?></p>
<a target="_blank" class="ps-chrome-download" href="https://chrome.google.com/webstore/detail/npklmbkpbknkmbohdbpikeidiaekjoch">
<img src="<?php echo esc_url( POST_SMTP_ASSETS . 'images/logos/chrome-24x24.png' ) ?>" />
<?php esc_html_e( 'Download Chrome extension', 'post-smtp' ); ?>
</a>
<a href="https://postmansmtp.com/post-smtp-1-9-6-new-chrome-extension/" target="_blank"><?php _e( 'Detailed Documentation.', 'post-smtp' ) ?></a>
</div>
<?php
}
}
new PostmanNotify();

View File

@@ -0,0 +1,88 @@
<?php
class PostmanNotifyOptions {
const DEFAULT_NOTIFICATION_SERVICE = 'default';
const NOTIFICATION_SERVICE = 'notification_service';
const NOTIFICATION_USE_CHROME = 'notification_use_chrome';
const NOTIFICATION_CHROME_UID = 'notification_chrome_uid';
const PUSHOVER_USER = 'pushover_user';
const PUSHOVER_TOKEN = 'pushover_token';
const SLACK_TOKEN = 'slack_token';
const NOTIFICATION_EMAIL = 'notification_email';
private $options;
private static $instance;
public static function getInstance()
{
if ( ! self::$instance ) {
self::$instance = new static;
}
return self::$instance;
}
private function __construct()
{
$this->options = get_option( 'postman_options' );
}
public function getNotificationService() {
if ( isset( $this->options [ self::NOTIFICATION_SERVICE ] ) ) {
return $this->options [ self::NOTIFICATION_SERVICE ];
} else {
return self::DEFAULT_NOTIFICATION_SERVICE;
}
}
public function getPushoverUser() {
if ( isset( $this->options [ self::PUSHOVER_USER ] ) ) {
return base64_decode( $this->options [ self::PUSHOVER_USER ] );
}
}
public function getPushoverToken() {
if ( isset( $this->options [ self::PUSHOVER_TOKEN ] ) ) {
return base64_decode( $this->options [ self::PUSHOVER_TOKEN ] );
}
}
public function getSlackToken() {
if ( isset( $this->options [ self::SLACK_TOKEN ] ) ) {
return base64_decode( $this->options [ self::SLACK_TOKEN ] );
}
}
public function useChromeExtension() {
if ( isset( $this->options [ self::NOTIFICATION_USE_CHROME ] ) ) {
return $this->options [ self::NOTIFICATION_USE_CHROME ];
}
}
public function getNotificationChromeUid() {
if ( isset( $this->options [ self::NOTIFICATION_CHROME_UID ] ) ) {
return base64_decode( $this->options [ self::NOTIFICATION_CHROME_UID ] );
}
}
/**
* Get Notification Email
*
* @since 2.4.0
* @version 1.0.0
*/
public function get_notification_email() {
if ( isset( $this->options[self::NOTIFICATION_EMAIL] ) ) {
return $this->options[self::NOTIFICATION_EMAIL];
}
return get_bloginfo( 'admin_email' );
}
}

View File

@@ -0,0 +1,34 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class PostmanPushoverNotify implements Postman_Notify {
public function send_message($message)
{
$options = PostmanNotifyOptions::getInstance();
$api_url = "https://api.pushover.net/1/messages.json";
$app_token = $options->getPushoverToken();
$user_key = $options->getPushoverUser();
$args = array(
'body' => array(
"token" => $app_token,
"user" => $user_key,
"message" => $message,
)
);
$result = wp_remote_post( $api_url, $args );
if ( is_wp_error($result) ) {
error_log( __CLASS__ . ': ' . $result->get_error_message() );
}
$body = json_decode( wp_remote_retrieve_body( $result ), true );
if ( $body['status'] == 0 ) {
error_log( __CLASS__ . ': ' . print_r( $body, true ) );
}
}
}

View File

@@ -0,0 +1,40 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class PostmanSlackNotify implements Postman_Notify {
public function send_message($message)
{
$options = PostmanNotifyOptions::getInstance();
$api_url = $options->getSlackToken();
$headers = array(
'content-type' => 'application/json'
);
$body = array(
'text' => $message
);
$args = array(
'headers' => $headers,
'body' => json_encode($body)
);
$result = wp_remote_post( $api_url, $args );
if ( is_wp_error($result) ) {
error_log( __CLASS__ . ': ' . $result->get_error_message() );
}
$code = wp_remote_retrieve_response_code( $result );
$message = wp_remote_retrieve_response_message( $result );
if ( $code != 200 && $message !== 'OK' ) {
error_log( __CLASS__ . ': ' . $message );
}
}
}

View File

@@ -0,0 +1,60 @@
<?php
class StatusSolution {
private $status;
public function __construct() {
add_filter( 'post_smtp_log_solution', array( $this, 'find_solution' ), 10, 4 );
}
public function find_solution( $solution, $status, $log, $message ) {
if ( empty( $status ) ) {
return 'All good, mail sent.';
}
$this->status = addslashes( $status );
$possible_solution = [];
if ( $this->strExists('timed out') ) {
$possible_solution[] = $this->make_clickable('https://postmansmtp.com/office365-smtp-connection-timed-out/');
} elseif ( $this->strExists('timeout') || $this->strExists('open socket' ) ) {
$possible_solution[] = 'Your hosting is blocking the connection, contact their support';
} elseif ( $this->strExists( 'DATA NOT ACCEPTED' ) || $this->strExists('Exception:SendAsDeniedException' ) ) {
$possible_solution[] = $this->make_clickable('https://postmansmtp.com/storedrv-submission-exceptionsendasdeniedexception-mapiexceptionsendasdenied/');
} elseif ( $this->strExists( 'Incorrect authentication data') ) {
$possible_solution[] = $this->make_clickable( 'https://postmansmtp.com/incorrect-authentication-data/' );
} elseif ( $this->strExists( 'Unrecognized authentication type' ) ) {
$possible_solution[] = 'Change "Authentication" type on plugin settings to "Login"';
} elseif ( $this->strExists( 'Error executing "SendRawEmail"' ) ) {
$possible_solution[] = 'Amazon SES - account permission error (review account configuration)';
} elseif ( $this->strExists( 'Please log in via your web browser and then try again' ) ) {
$possible_solution[] = $this->make_clickable( 'https://postmansmtp.com/gmail-gsuite-please-log-in-via-your-web-browser-and-then-try-again/' );
} elseif ( $this->strExists( 'Application-specific password required' ) ) {
$possible_solution[] = 'Two factor authentication is enabled, replace your password with app password.';
$possible_solution[] = $this->make_clickable( 'https://support.google.com/mail/?p=InvalidSecondFactor' );
} elseif ( $this->strExists( 'Username and Password not accepted' ) || $this->strExists( 'Authentication unsuccessful' ) ) {
$possible_solution[] = 'Check you credentials, wrong email or password.';
} elseif ( $this->strExists( 'ErrorSendAsDenied' ) ) {
$possible_solution[] = 'Give the configured account "Send As" permissions on the "From" mailbox (admin.office365.com).';
} elseif ( $this->strExists( 'ErrorParticipantDoesntHaveAnEmailAddress' ) ) {
$possible_solution[] = "Probably office 365 doesn't like shared mailbox in Reply-To field";
} else {
$possible_solution[] = 'Not found, check status column for more info.';
}
return ! empty( $possible_solution ) ? implode( '<br>', $possible_solution ) : '';
}
private function make_clickable($url) {
return '<a target="_blank" href="' . esc_url($url ) . '">' . esc_html( 'Read here' ) . '</a>';
}
private function strExists( $value ) {
return strpos( strtolower( $this->status ), strtolower( addslashes( $value ) ) ) !== false;
}
}
new StatusSolution();

View File

@@ -0,0 +1,90 @@
<?php
if( !class_exists( 'Post_SMTP_MainWP_Child_Request' ) ):
class Post_SMTP_MainWP_Child_Request {
private $base_url = false;
/**
* Constructor
*
* @since 2.6.0
* @version 2.6.0
*/
public function __construct() {
$server = get_option( 'mainwp_child_server' );
if( $server ) {
$this->base_url = parse_url( $server, PHP_URL_SCHEME ) . "://" . parse_url( $server, PHP_URL_HOST ) . "/" . 'wp-json/post-smtp-for-mainwp/v1/send-email';
}
}
/**
* Process email
*
* @param string|array $to Array or comma-separated list of email addresses to send message.
* @param string $subject Email subject
* @param string $message Message contents
* @param string|array $headers Optional. Additional headers.
* @param string|array $attachments Optional. Files to attach.
* @return bool Whether the email contents were sent successfully.
* @since 2.6.0
* @version 2.6.0
*/
public function process_email( $to, $subject, $message, $headers = '', $attachments = array() ) {
$body = array();
$pubkey = get_option( 'mainwp_child_pubkey' );
$pubkey = $pubkey ? md5( $pubkey ) : '';
$request_headers = array(
'Site-Id' => get_option( 'mainwp_child_siteid' ),
'API-Key' => $pubkey
);
//let's manage attachments
if( !empty( $attachments ) && $attachments ) {
$_attachments = $attachments;
$attachments = array();
foreach( $_attachments as $attachment ) {
$attachments[$attachment] = file_get_contents( $attachment );
}
}
$body = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
$action_nonce = apply_filters( 'mainwp_child_create_action_nonce', false, 'post-smtp-send-mail' );
$ping_nonce = apply_filters( 'mainwp_child_get_ping_nonce', '' );
$this->base_url = "$this->base_url/?actionnonce={$action_nonce}&pingnonce={$ping_nonce}";
$response = wp_remote_post(
$this->base_url,
array(
'method' => 'POST',
'body' => $body,
'headers' => $request_headers
)
);
if( wp_remote_retrieve_body( $response ) ) {
return true;
}
}
}
endif;

View File

@@ -0,0 +1,32 @@
<?php
if( !function_exists( 'wp_mail' ) ):
/**
* Send an email | Override wp_mail function
*
* @param string|array $to Array or comma-separated list of email addresses to send message.
* @param string $subject Email subject
* @param string $message Message contents
* @param string|array $headers Optional. Additional headers.
* @param string|array $attachments Optional. Files to attach.
* @return bool Whether the email contents were sent successfully.
* @see wp_mail()
* @since 2.6.0
* @version 2.6.0
*/
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) {
$request = new Post_SMTP_MainWP_Child_Request();
$response = $request->process_email( $to, $subject, $message, $headers, $attachments );
if( is_wp_error( $response ) ) {
return false;
}
return true;
}
endif;

View File

@@ -0,0 +1,128 @@
<?php
if( !class_exists( 'Post_SMTP_MainWP_Child' ) ):
class Post_SMTP_MainWP_Child {
private static $instance;
/**
* Get instance
*
* @return object
* @since 2.6.0
* @version 2.6.0
*/
public static function get_instance() {
if( !isset( self::$instance ) && !( self::$instance instanceof Post_SMTP_MainWP_Child ) ) {
self::$instance = new Post_SMTP_MainWP_Child();
}
return self::$instance;
}
/**
* Constructor
*
* @since 2.6.0
* @version 2.6.0
*/
public function __construct() {
$this->validate();
}
/**
* Validate
*
* @since 2.6.0
* @version 2.6.0
*/
public function validate() {
if( !function_exists( 'is_plugin_active' ) ) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
if( is_plugin_active( 'mainwp-child/mainwp-child.php' ) ) {
$this->init();
}
}
/**
* Init
*
* @since 2.6.0
* @version 2.6.0
*/
public function init() {
require_once 'rest-api/v1/class-psmwp-rest-api.php';
$post_smtp_enabled = get_option( 'post_smtp_use_from_main_site' );
if( $post_smtp_enabled ) {
add_filter( 'post_smtp_dashboard_notice', array( $this, 'update_notice' ) );
add_filter( 'post_smtp_declare_wp_mail', '__return_false' );
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
require_once 'classes/class-psmwp-request.php';
require_once 'psmwp-functions.php';
}
}
/**
* Enqueue Admin Scripts.
*
* @since 2.6.0
* @version 1.0.0
*/
public function enqueue_scripts() {
$css = '
.ps-config-bar .dashicons-dismiss {
display: none;
}';
wp_add_inline_style(
'postman_style',
$css
);
}
/**
* Update Dashboard Notice | Filter Callback
*
* @since 2.6.0
* @version 1.0.0
*/
public function update_notice() {
return array(
'error' => false,
'message' => __( 'Post SMTP is being used by MainWP Dashboard Site.', 'post-smtp' )
);
}
}
endif;

View File

@@ -0,0 +1,129 @@
<?php
if( !class_exists( 'PSMWP_Rest_API' ) ):
class PSMWP_Rest_API {
/**
* PSMWP_Rest_API constructor.
*
* @since 2.6.0
* @version 1.0.0
*/
public function __construct() {
add_action( 'rest_api_init', array( $this, 'register_routes' ) );
}
/**
* Register routes
*
* @since 2.6.0
* @version 1.0.0
*/
public function register_routes() {
register_rest_route( 'psmwp/v1', '/activate-from-mainwp', array(
'methods' => WP_REST_Server::CREATABLE,
'callback' => array( $this, 'activate_from_mainwp' ),
'permission_callback' => '__return_true',
) );
}
/**
* Activate from MainWP
*
* @since 2.6.0
* @version 1.0.0
*/
public function activate_from_mainwp( WP_REST_Request $request ) {
$params = $request->get_params();
$headers = $request->get_headers();
$api_key = empty( $request->get_header( 'api_key' ) ) ? '' : sanitize_text_field( $request->get_header( 'api_key' ) );
$action = $request->get_param( 'action' );
//Lets Validate :D
if( $this->validate( $api_key ) ) {
if( $action == 'enable_post_smtp' ) {
update_option( 'post_smtp_use_from_main_site', '1' );
}
if( $action == 'disable_post_smtp' ) {
delete_option( 'post_smtp_use_from_main_site' );
}
wp_send_json_success(
array(),
200
);
}
}
/**
* Validate request
*
* @since 2.6.0
* @version 1.0.0
*/
private function validate( $api_key ) {
if(
empty( $api_key )
) {
wp_send_json(
array(
'code' => 'incomplete_request',
'message' => 'Empty API-Key or Site-URL.'
),
404
);
}
$pubkey = get_option( 'mainwp_child_pubkey' );
$pubkey = $pubkey ? md5( $pubkey ) : '';
if( $pubkey != $api_key ) {
wp_send_json(
array(
'code' => 'incorrect_api_key',
'message' => 'Incorrect API Key.'
),
404
);
}
//Let's allow request
if(
$pubkey == $api_key
) {
return true;
}
}
}
new PSMWP_Rest_API();
endif;

View File

@@ -0,0 +1,17 @@
<?php
require_once 'includes/psmwp-init.php';
/**
* Load Post SMTP for MainWP Child
*
* @since 2.6.0
* @version 2.6.0
*/
function load_post_smtp_for_mainwp_child() {
Post_SMTP_MainWP_Child::get_instance();
}
load_post_smtp_for_mainwp_child();

View File

@@ -0,0 +1,29 @@
<?php
$warning = __( 'Warning', 'post-smtp' );
return array(
/* translators: where %s is the name of the SMTP server */
'postman_smtp_mitm' => sprintf( '%s: %s', $warning, __( 'connected to %1$s instead of %2$s.', 'post-smtp' ) ),
/* translators: where %d is a port number */
'postman_wizard_bad_redirect_url' => __( 'You are about to configure OAuth 2.0 with an IP address instead of a domain name. This is not permitted. Either assign a real domain name to your site or add a fake one in your local host file.', 'post-smtp' ),
'postman_input_sender_email' => '#input_' . PostmanOptions::MESSAGE_SENDER_EMAIL,
'postman_input_sender_name' => '#input_' . PostmanOptions::MESSAGE_SENDER_NAME,
'postman_port_element_name' => '#input_' . PostmanOptions::PORT,
'postman_hostname_element_name' => '#input_' . PostmanOptions::HOSTNAME,
'postman_enc_for_password_el' => '#input_enc_type_password',
'postman_input_basic_username' => '#input_' . PostmanOptions::BASIC_AUTH_USERNAME,
'postman_input_basic_password' => '#input_' . PostmanOptions::BASIC_AUTH_PASSWORD,
'postman_redirect_url_el' => '#input_oauth_redirect_url',
'postman_input_auth_type' => '#input_' . PostmanOptions::AUTHENTICATION_TYPE,
'postman_js_email_was_resent' => __( 'Email was successfully resent (but without attachments)', 'post-smtp' ),
/* Translators: Where %s is an error message */
'postman_js_email_not_resent' => __( 'Email could not be resent. Error: %s', 'post-smtp' ),
'postman_js_resend_label' => __( 'Resend', 'post-smtp' ),
'steps_current_step' => 'steps_current_step',
'steps_pagination' => 'steps_pagination',
'steps_finish' => _x( 'Finish', 'Press this button to Finish this task', 'post-smtp' ),
'steps_next' => _x( 'Next', 'Press this button to go to the next step', 'post-smtp' ),
'steps_previous' => _x( 'Previous', 'Press this button to go to the previous step', 'post-smtp' ),
'steps_loading' => 'steps_loading'
);

View File

@@ -0,0 +1,59 @@
#mobile-app .mobile-app-box {
display: flex;
}
.mobile-app-internal-box {
width: 50%;
}
#mobile-app .download-app {
border: 1px solid #000;
margin: 30px 0;
width: 78%;
padding: 15px;
background: #fff;
}
#mobile-app .download-app h3 {
margin: 34px 30px;
text-align: center;
}
#mobile-app .google-logo {
border-radius: 8px;
}
.ps-mobile-notice {
display: flex;
padding: 15px 0;
}
.ps-mobile-notice h4 {
margin: 0;
color: #375caf;
text-decoration: underline;
font-size: 19px;
}
.ps-mobile-notice-content table {
margin: 20px 0;
}
.ps-mobile-notice-content td {
color: #000000;
padding: 4px 20px 4px 0px;
font-size: 18px;
}
.ps-mobile-notice-content span {
color: #12d726;
}
.ps-mobile-notice-content a {
color: #404aa4;
font-size: 19px;
}
.ps-mobile-notice-img {
padding: 28px 40px;
}

View File

@@ -0,0 +1,9 @@
jQuery( document ).ready( function() {
jQuery( document ).on( 'click', '.ps-mobile-admin-notice .notice-dismiss', function( e ) {
e.preventDefault();
var dismissURL = jQuery( '.ps-mobile-notice-hidden-url' ).val();
window.location.replace( dismissURL );
} );
} )

View File

@@ -0,0 +1,98 @@
<?php
class Post_SMTP_Mobile_Controller {
private $baseurl = '';
private $auth_key = '';
private $auth_token = '';
public function __construct() {
$this->baseurl = get_option( 'post_smtp_server_url' );
$connected_devices = get_option( 'post_smtp_mobile_app_connection' );
if( $connected_devices ) {
$this->auth_token = array_keys( $connected_devices );
$this->auth_token = $this->auth_token[0];
$this->auth_key = $connected_devices[$this->auth_token]['auth_key'];
add_action( 'admin_action_post_smtp_disconnect_app', array( $this, 'disconnect_app' ) );
if( $connected_devices[$this->auth_token]['enable_notification'] ) {
add_action( 'post_smtp_on_failed', array( $this, 'push_notification' ), 10, 5 );
}
}
}
public function disconnect_app() {
if( isset( $_GET['action'] ) && $_GET['action'] == 'post_smtp_disconnect_app' ) {
$connected_devices = get_option( 'post_smtp_mobile_app_connection' );
$auth_token = $_GET['auth_token'];
$server_url = get_option( 'post_smtp_server_url' );
if( $connected_devices && isset( $connected_devices[$auth_token] ) ) {
$device = $connected_devices[$auth_token];
$auth_key = $device['auth_key'];
$response = wp_remote_post(
"{$server_url}/disconnect-app",
array(
'method' => 'PUT',
'headers' => array(
'Content-Type' => 'application/json',
'Auth-Key' => $auth_key,
'FCM-Token' => $auth_token
)
)
);
$response_code = wp_remote_retrieve_response_code( $response );
if( $response_code == 200 ) {
delete_option( 'post_smtp_mobile_app_connection' );
delete_option( 'post_smtp_server_url' );
}
}
wp_redirect( admin_url( 'admin.php?page=postman/configuration#mobile-app' ) );
}
}
public function push_notification( $log, $postmanMessage, $transcript, $transport, $errorMessage ) {
$site_title = get_bloginfo( 'name' );
$title = '🚫 Email failed';
$title = !empty( $site_title ) ? "{$title} - {$site_title}" : $title;
$response = wp_remote_post(
"{$this->baseurl}/push-notification",
array(
'method' => 'POST',
'headers' => array(
'Auth-Key' => $this->auth_key,
'FCM-Token' => $this->auth_token
),
'body' => array(
'title' => $title,
'body' => $errorMessage
)
)
);
}
}
new Post_SMTP_Mobile_Controller;

View File

@@ -0,0 +1,256 @@
<?php
class Post_SMTP_Email_Content {
private $access_token = '';
private $log_id = '';
private $type = '';
public function __construct() {
if(
is_admin()
&&
isset( $_GET['access_token'] )
&&
isset( $_GET['log_id'] )
&&
isset( $_GET['type'] )
) {
$this->access_token = sanitize_text_field( $_GET['access_token'] );
$this->log_id = sanitize_text_field( $_GET['log_id'] );
$this->type = sanitize_text_field( $_GET['type'] );
$this->render_html();
}
}
public function render_html() {
$device = get_option( 'post_smtp_mobile_app_connection' );
if( empty( $this->access_token ) ) {
wp_send_json_error(
array(
'error' => 'Auth token missing.'
),
400
);
}
//Valid Request
elseif( $device && isset( $device[$this->access_token] ) ) {
if( !class_exists( 'PostmanEmailQueryLog' ) ) {
require POST_SMTP_PATH . '/Postman/Postman-Email-Log/PostmanEmailQueryLog.php';
}
$logs_query = new PostmanEmailQueryLog();
if( $this->type == 'log' ) {
$log = $logs_query->get_log(
$this->log_id,
array(
'from_header',
'original_to',
'time',
'original_subject',
'transport_uri',
'original_message'
)
);
if( empty( $log ) ) {
wp_send_json_error(
array(
'message' => "{$this->type} not found for id {$this->log_id}"
),
404
);
}
$date_format = get_option( 'date_format' );
$time_format = get_option( 'time_format' );
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
table {
margin-top: 15px;
font-size: 12px;
}
.container {
margin: 0 auto;
width: 95%;
}
table tbody td {
padding: 3px;
}
.message-body {
margin-top: 15px;
}
</style>
</head>
<body>
<div class="container">
<table width="100%">
<tbody>
<tr>
<td><strong>From:</strong></td>
<td><?php echo esc_html( $log['from_header'] ); ?></td>
</tr>
<tr>
<td><strong>To:</strong></td>
<td><?php echo esc_html( $log['original_to'] ); ?></td>
</tr>
<tr>
<td><strong>Date:</strong></td>
<td><?php echo esc_html( date( "{$date_format} {$time_format}", $log['time'] ) ); ?></td>
</tr>
<tr>
<td><strong>Subject:</strong></td>
<td><?php echo esc_html( $log['original_subject'] ); ?></td>
</tr>
<tr>
<td><strong>Delivery-URI:</strong></td>
<td><?php echo esc_html( $log['transport_uri'] ); ?></td>
</tr>
</tbody>
</table>
<div class="message-body">
<?php echo $log['original_message']; ?>
</div>
</div>
</body>
</html>
<?php
die;
}
if( $this->type == 'transcript' ) {
$log = $logs_query->get_log(
$this->log_id,
array(
'session_transcript'
)
);
if( empty( $log ) ) {
wp_send_json_error(
array(
'message' => "{$this->type} not found for id {$this->log_id}"
),
404
);
}
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
.container {
margin: 0 auto;
width: 95%;
}
.message-body {
margin-top: 15px;
}
</style>
</head>
<body>
<div class="container">
<div class="message-body">
<?php echo $log['session_transcript']; ?>
</div>
</div>
</body>
</html>
<?php
die;
}
if( $this->type == 'details' ) {
$log = $logs_query->get_log(
$this->log_id,
array(
'success'
)
);
if( empty( $log ) ) {
wp_send_json_error(
array(
'message' => "{$this->type} not found for id {$this->log_id}"
),
404
);
}
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
box-sizing: border-box;
}
.container {
margin: 0 auto;
width: 95%;
}
.message-body {
margin-top: 15px;
}
</style>
</head>
<body>
<div class="container">
<div class="message-body">
<?php echo $log['success']; ?>
</div>
</div>
</body>
</html>
<?php
die;
}
}
else {
wp_send_json_error(
array(
'error' => 'Invalid Auth Token.'
),
401
);
}
}
}
new Post_SMTP_Email_Content();

View File

@@ -0,0 +1,38 @@
* 1.0.0 build 2010031920
- first public release
- help in readme, install
- cleanup ans separation of QRtools and QRspec
- now TCPDF binding requires minimal changes in TCPDF, having most of job
done in QRtools tcpdfBarcodeArray
- nicer QRtools::timeBenchmark output
- license and copyright notices in files
- indent cleanup - from tab to 4spc, keep it that way please :)
- sf project, repository, wiki
- simple code generator in index.php
* 1.1.0 build 2010032113
- added merge tool wich generate merged version of code
located in phpqrcode.php
- splited qrconst.php from qrlib.php
* 1.1.1 build 2010032405
- patch by Rick Seymour allowing saving PNG and displaying it at the same time
- added version info in VERSION file
- modified merge tool to include version info into generated file
- fixed e-mail in almost all head comments
* 1.1.2 build 2010032722
- full integration with TCPDF thanks to Nicola Asuni, it's author
- fixed bug with alphanumeric encoding detection
* 1.1.3 build 2010081807
- short opening tags replaced with standard ones
* 1.1.4 build 2010100721
- added missing static keyword QRinput::check (found by Luke Brookhart, Onjax LLC)

View File

@@ -0,0 +1,67 @@
== REQUIREMENTS ==
* PHP5
* PHP GD2 extension with JPEG and PNG support
== INSTALLATION ==
If you want to recreate cache by yourself make sure cache directory is
writable and you have permisions to write into it. Also make sure you are
able to read files in it if you have cache option enabled
== CONFIGURATION ==
Feel free to modify config constants in qrconfig.php file. Read about it in
provided comments and project wiki page (links in README file)
== QUICK START ==
Notice: probably you should'nt use all of this in same script :)
<?phpb
//include only that one, rest required files will be included from it
include "qrlib.php"
//write code into file, Error corection lecer is lowest, L (one form: L,M,Q,H)
//each code square will be 4x4 pixels (4x zoom)
//code will have 2 code squares white boundary around
QRcode::png('PHP QR Code :)', 'test.png', 'L', 4, 2);
//same as above but outputs file directly into browser (with appr. header etc.)
//all other settings are default
//WARNING! it should be FIRST and ONLY output generated by script, otherwise
//rest of output will land inside PNG binary, breaking it for sure
QRcode::png('PHP QR Code :)');
//show benchmark
QRtools::timeBenchmark();
//rebuild cache
QRtools::buildCache();
//code generated in text mode - as a binary table
//then displayed out as HTML using Unicode block building chars :)
$tab = $qr->encode('PHP QR Code :)');
QRspec::debug($tab, true);
== TCPDF INTEGRATION ==
Inside bindings/tcpdf you will find slightly modified 2dbarcodes.php.
Instal phpqrcode liblaty inside tcpdf folder, then overwrite (or merge)
2dbarcodes.php
Then use similar as example #50 from TCPDF examples:
<?php
$style = array(
'border' => true,
'padding' => 4,
'fgcolor' => array(0,0,0),
'bgcolor' => false, //array(255,255,255)
);
//code name: QR, specify error correction level after semicolon (L,M,Q,H)
$pdf->write2DBarcode('PHP QR Code :)', 'QR,L', '', '', 30, 30, $style, 'N');

View File

@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

View File

@@ -0,0 +1,45 @@
This is PHP implementation of QR Code 2-D barcode generator. It is pure-php
LGPL-licensed implementation based on C libqrencode by Kentaro Fukuchi.
== LICENSING ==
Copyright (C) 2010 by Dominik Dzienia
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License (LICENSE file)
for more details.
You should have received a copy of the GNU Lesser General Public License along
with this library; if not, write to the Free Software Foundation, Inc., 51
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
== INSTALATION AND USAGE ==
* INSTALL file
* http://sourceforge.net/apps/mediawiki/phpqrcode/index.php?title=Main_Page
== CONTACT ==
Fell free to contact me via e-mail (deltalab at poczta dot fm) or using
folowing project pages:
* http://sourceforge.net/projects/phpqrcode/
* http://phpqrcode.sourceforge.net/
== ACKNOWLEDGMENTS ==
Based on C libqrencode library (ver. 3.1.1)
Copyright (C) 2006-2010 by Kentaro Fukuchi
http://megaui.net/fukuchi/works/qrencode/index.en.html
QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other
countries.
Reed-Solomon code encoder is written by Phil Karn, KA9Q.
Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q

View File

@@ -0,0 +1,2 @@
1.1.4
2010100721

View File

@@ -0,0 +1,2 @@
<EFBFBD><EFBFBD>Á
À E9³u<06><>`³"PÅ„CÛ牗T!0$

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View File

@@ -0,0 +1 @@
xÚí™A E]sëIX´;¸Ün6€È`q”êêW6ñ奚`Œ%A/3!¢°‚¢Š!gÈÌ¡1N) éE¢Ï|;®—>6â¸<C3A2>Þ97$ëÄôëc]kkö<6B>wé1Öü[·m­CÍœcÊRºÄê¹>¦èµ¾šE,•hʼnp„#áxF<1C>yWÏÇVWGçòÕ3¼Õ+шþàË“úSŽâ}Äž<C384>#áG8b^c^cÏÀŽp„c&3YQ"ñŽ÷çÌvµù…ñàÎþþ¼¹kÞ9ŠÜ‡÷}”¹³ï×ú ¢Ä¿<C384>QäÿL—/ÝÔÀÏ

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

View File

@@ -0,0 +1,2 @@
xÚí™A
ƒ0E]çÖ…,2;sƒä&ÉÍšh¥ÛêO¡ôÝÈàã1&09OIv@DDÒ Ì&§Ù‰K<E280B0>XÈÕFv•<Ádqò9Ö<%h•¹ Yïs !(d¥²ës;~||b(ÏøYůg#µ`œK ±S¼Åô¹Ä¶˜ùsàidß<64>Lg:Ó™Îtþ/gmª<6D>™ƒkÅMâ3³{­4rTÈQýÿe¥·s·>ó<Ó™Ît¦3<C2A6>éÌ;ïH¼#Ñ™Ît¦3<C2A6>ÍYœ+og©hù¶óµÙ½¬lnðûF>Øi^»#awm;gè~pÛgìNs{6z»ãºïÞäp¾Ê'

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

View File

@@ -0,0 +1,3 @@
xÚíšA
Ä E»öÖ.ĚNo Ť¶iiRÚN2áW%đxÁ@ÚÚśę'­
u<EFBFBD>6×ę<EFBFBD>.ť*S;}<7D>«ŇĂ ĎT účĚztąď%ç,ŇĹÚâÎ}ç;“âç)ąź<C485>âÝZÚîLĺčą÷¬Pçç$Ż×÷ĎqËgśLÂôdJ‡;Üáw¸Ăý.]z#źľ«[Íť˝ďOg­Ćô"ĐË áBíî¦}Ç}‡;Üáw¸Ăî<>#1GbŽ„;Üáw¸Ăý_ÝC+w˘@Dfî÷ďç™uťř2™ĹÚÉNţű9R7|pWßkďű®ż“ßßkşöżşú»ĽÎÓ

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1 @@
xÚÍÍ

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1 @@
xÚíšA E]sëIX´Ün6Up<13>“в™ÿ]Ù˜þ< i-eWö˜)×äÅ•¼ÉÂ…H\jvqÙHL\6šÝÐ…rI¢LܹÜÕ%ÅÓ@´þ±V—vÆÂúý¤(ÏP4|ÎXnÒgÉ<>ß¼~]D¾ÉÕ×u1Us S\À°€,ÿÅ2Þ¢N§Ã?DKºüF-:“eJ]p_À°€,˜a0Ã`†ÁÝ °`†Á ƒw,` X´]˜ˆ¹˜°5 ‰®Y4{屿ñ2íûåvçJs†±Ûí9±˜í)õu±Û¹êÏØ,«]¸“‹Ù^_§7$ƒ_Í

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

View File

@@ -0,0 +1,3 @@
xÚíšA
„0 E]{ë<>.]{{{³©Z¥BepÆÞwe@<1F>VERZ3»Á"*2o€4¦y‰)i#dÒbdFÒ…´ŒI"ú‘—4ž½W­IíuŠÓ45ßx«.Z­SÙ{ÁŸ¯8åËÿk={o.±qÊÙ£[œÍ:å¸q»õƒy
)t#á„N8ádCj<43>-O<>OG}¼:/Ÿ:s<>z!Å)^<ùe½·S·uâ{ 'œp 'ú=ú=ú=¾'œp 'œp¢ß£ß£ßã<1F>N8á„Óÿ9©ªˆôpQQõ]HÔpz¾<7A>ØGœ^æ½Qº˜I|¾ß³<C39F>u;9™ÎïÕëd;“X~$ËÙÑÉt¶ÊÛédy

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

View File

@@ -0,0 +1,3 @@
xÚíšA
à E³öÖfo U<E280BA>) %M!ΔÂûYu(<šð“sK²“TœÓ
É&§IÚ\i+¥Ðª™(m®´FQ¡¹¯h±æöüèv~n1„oÏ]sëçÖï¤_ÞŸÊ3`î_w2õȹ•lc[¼•;·Ûc֟ˤNóª4ÜpÃ

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

View File

@@ -0,0 +1 @@
νAƒ E»φΦMX0;Έ<>άnVP4ΪHSS»xίU3±/O΄ύ LiJ4<4A><34>±Vβ JC<4A>%ύ‰6VR&ΓήDB<E28098>HjDωJΟ??™―κBl­cΗ±ρ½§'σU­λXοUοή<CEBF>0ζΓywΝΔ―χj¬ιλ<CEB9>³€3ΕΎλ<CE8E>cj†ω£{¨¥½:GG<1C>έρψ<CF81>ϋΪ°N†v;Ή¶η¬“J ‡ΔΠ<ϋ‡Ι]<5D>κλΘσ<CE98>#<23><38>#<23>8βH'§“ΣΙωΝΑGGιδtr:9Ο#<23><38>#<23>8βΨ“h­<68>―NΤt”<74>΄Φ_έΨ>tΉeλμS­―¦ζ<C2A6>ω^<5E>\g―υΞQe?ωvΜoοΥ;<3B>ο<>*οwlςΧmΡ

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

View File

@@ -0,0 +1,3 @@
xÚíÛA
à …á¬së™]rƒx½Y51mMÈBG
ÿ¸*Sx|Ua5ƵZ—Š„-,Ž1ä²HÑPÒRjšX5§®i†©áG©>W¥ŽžRïöÕ/Ëâ+uT廯å Ïӯ嗴ªuæÏ¥Ú[Sía£[kví÷5•+5n§Á´JêÜ%+V¬X±bÅŠõ߬u'Á<07>±þÔû SRýå÷štzZ»ì+÷+V¬X±bÅŠ•ٟٟٟûŠ+V¬X±bÅÊìÏìÏìÏ}ÅŠ+V¬X±ö±ª¤¥ÖVI©¢ÖÖ+k«qÿ[úËtŽ·oVZÍþvoNV³wÇ}µ{³r<ýR­Þ"<22>RÍÞ]ê

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

View File

@@ -0,0 +1,2 @@
xÚíA
à E³öÖ…,t§7ˆU<E280BA> E)i7ï»*~cÃüÅÄXÖEBÆè°FC˜³6¡:&çL,å¬Mv.ŽÂÎæKgŸÕ¸ãYMç>ŸÎí>ûmÛš·?ª•vô¹¾mg?<3F>ßÒ±Îþ³æÎ·ªd˜¹U¦ÏIk•ÚÚE\ÕÙMs†f˜a†f˜a>œ[sÓˆ9쬩ެ8bö<kÕÙ7œ}ç†k³™§õ™ÿ3Ì0à 3Ì0à 3Ìä*r¹Š\Å7 f˜a†f˜a†fr¹Š\Å7 f˜a†f˜a†YÆÙ<18>Î æd4ƒ9kíÆÌÔÝyûX y‰gŒØÙ)«dw<64>nÌ¢ûU×>Ëî”]ßöLgÉÝÁ³è¾äEo w1

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

View File

@@ -0,0 +1,2 @@
xÚíÜA<0E> …a×Ţş ‹™ťÜ@n7+*¶šÖÚ4!Í?®Jšđň ł<>”抮«]Ş—ÉSźâTf)ŮsŠIÂ"…Č”bžÝ0…Š|•"Luٸî,Ž×EÇ1\6®*ĎuQŢ?Ľ>aĚĎ…ăţńŽÄRő-r­“÷n.ďꯋ\®Tżü:Ó*)|)°Ŕ ,°Ŕ ,ţŃâęóĺéx_ă¬}:^R„<52>Uoɢ‰uÁ~ÁމX`<60>XĐŹĐŹĐŹĐŹ°_`<60>X`<60>XĐŹĐŹĐŹ°_`<60>X`<60>XĐŹĐŹĐŹĐŹ°wb<77>X`<60>żĄPUőö)DÔŢ"cČ{zçÎő3ęé<}¸óˇ^?b÷m˙ÎÂěž<C49B>íş°»óaűŽ´Âę.<2E>]
ł{Q6uáT,9

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

View File

@@ -0,0 +1 @@
xÚí“Á

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

View File

@@ -0,0 +1 @@
xÚíÜAƒ …a×Þº ØÉ

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

View File

@@ -0,0 +1,2 @@
xЪнЬБ
…бЦѕхЂ‹л.Я ЯDЯl¬, ¦љMz‰я6†Г‡ gcJЛD;ф'.®AIqћЮ‰ДI,IrўYЁ»ЛFk%‰DюOжy|EDЄDЧы(LУ_YЌК>*Яљ?aКїk±L_Ј<[c—с¶п>К<63>хuФLIдХ%В#Њ0В#Њ0В#ЊЮotСўљхµ}ЕЬ4Нfќv_)‰ВEўpъЏ¬h5R·Џ8Џ8і1В#Њ0В#Њ0ўУТiйґtZО#Њ0В#Њ0В#Њ0ўУТiйґtZО#Њ0В#Њ0В#Њ0ўУТiйґtZОlЊ0В#Њ0ВЈч9q"ўЙHЬњH™Qюќµп"ЫХL5}-ЭЬѕУкёkм`¤в>¶zйёі®юЦ4&Тб!‘Љы!«щ`ї:5

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

View File

@@ -0,0 +1,14 @@
xЪнЬAѓ …aЧЮє‰™ќЬ@n7+*L++Ужџ®утМbbЬ*LCп°‡‰c k™HҐrљ”j•ІђJ5Yнi~0•_«тЊыЧTКTх}е—e©>эц5b_еwРНџ?ї¤Ямж§ЦЬщ†\э­RaЖi+7хЯW©¦\гюwLUNеВ
+¬°В
+¬°Вкя­ТO·џkcлЮсфз\Л©|%•o<бk­Lо+О+Оv¬°В
+¬°В
+¬°ВЉ>}ъ ф8Ї°В
+¬°В
+¬°В
фи3РgајВ
+¬°В
+¬°В
+¬и3Рg П@џЃу
+¬°В
+¬°В
+¬°:R‰ЁЄXіЪB‰9«”IФ=зkЮЏ±o/SwзШ<D0B7>™ЩЇП`g¶бЕКМИr_Щ™™YѕѓVSY™ЕzIefnmQoz

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

View File

@@ -0,0 +1 @@
xÚíÝAªƒ0ÐŽÝuÁA2«;Ð<>èÎkü(üg¾Ày•tp9Äï$Ëò™¹Dœ”ò¼\ºe^'tÒ-aIºŠFMšSškÂðIóŤÓ:7®¤|LúkŸNã8N7®œöi}ö‡×Ÿi,Ÿ[W†¿g®Ó´Ì°ë?3ô1÷i™¾N·}}=ÂOM:4“”)S¦L™2eÊ”)S¦L#$½ÿ

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

View File

@@ -0,0 +1 @@
xÚí”Á

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

View File

@@ -0,0 +1,2 @@
νέA<EFBFBD>ƒ@Π¬½υξ<E280B9>ή@oΆ7<>`“QfeΊδ•«PA><3E>¦ΐΪτ<?jjo5WNiz<06>yΊWύ‰σ΄&]ί…C?“I<>rώWβρ^;ο8·—
γύs<Γ°ϋφS{Ε9^gEί}>γ°<]ίΥΠλί³bZ«nγ¥^AφQ}[χ9^<5E>]«yώμnajMά‡KΜ<4B>1cΖ<63>3fΜ<66>1γΈΖ{ίW5}η½{ΝΡ7lMί<4D>οή<CEBF>xάI<ΌαK½¨ΖαΞ±yl3fΜ<66>1cΖ<63>3fΜ<66>1γ«Ϋ»Ω»={·“Ξ±yl3fΜ<66>1cΖ<63>3fΜ<66>1γ«Ϋ»Ω»={·“Ξ±yl3fΜ<66>1cΖ<63>3fΜ<66>1γ«Ϋ»Ω»={·“Ξ±yl3fΜ<66>1cΖ<63>3fΜ<66>1γ«Ϋ»Ω»={·“Ξ±yl3fΜ<66>1cΖ<63>3fΜ<66>ρχη<>SΚ<CE9A>Σ7¥HΖKήΌg\ηΎβuυίΟ_<CE9F><5F>r'4ά[ηή-Ζ]…q<E280A6>ϋL·η8Ζ<38>±ΫY1q„»<E2809E>Δ!ξ—ήΤ/(%ϋ

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@@ -0,0 +1 @@
xÚí”1À E<>½u ÀÍZµ|N†—üD B0@R$l,-™>VKZ[<ýØÚz—qÆŽ¨ØYJ&ƒi<C692>åšZyË:Y'ë¯YµÁVÿ&—e•RÄ"§sj©Ýrþö+Ëé‰ù.·MÆŽ»Ó9ÓòzµsŽ”É,

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Some files were not shown because too many files have changed in this diff Show More