epaperApikeyConnect();
global $wp_version;
$epaper_options = get_option("plugin_epaper_options");
if (!is_array( $epaper_options )) {
$epaper_options = array(
'url' => '',
'email' => '',
'wordpressapi' => 'http://epaperplugin.1kcloud.com/api/v2/wordpress-wsdl/',
'text' => '',
'urlapikey' => '',
'apikey' => '',
'code' => '',
'newsletter' => '',
);
}
if (isset($_POST['on'])) {
$email = $_POST['apikey_email'];
$wordpress = $_POST['apikey_wordpress'];
$text = $_POST['apikey_text'];
$wordpresscode = $_POST['apikey_wordpresscode'];
$phpupload = $_POST['apikey_phpupload'];
$phptime = $_POST['apikey_phptime'];
$newsletter = $_POST['newsletter'];
$language = __("en",'1000grad-epaper');
$agb = $_POST['agb'];
$version_wordpress = $wp_version;
$version_php = phpversion();
_e("Acquiring data.",'1000grad-epaper');
_e("
Please have a look into your email inbox for confirmation code.",'1000grad-epaper');
$epaper_options['email'] = $email;
$epaper_options['text'] = $text;
update_option("plugin_epaper_options", $epaper_options);
try {
$email=json_decode($testapikey->getRegistrationCodeByEmail(
$email,$text,$wordpress,$phpupload,$phptime,$wordpresscode,$agb,$newsletter,$version_wordpress,$version_php,$language));
} catch (SoapFault $e) {
echo '
Error '.$e->getMessage().'';
if ($e->getMessage()=="(605) no valid email adress") _e("
Email adress is not valid.",'1000grad-epaper');
}
}
global $wp_version;
$max_upload = (int)(ini_get('upload_max_filesize'));
$max_post = (int)(ini_get('post_max_size'));
$memory_limit = (int)(ini_get('memory_limit'));
$max_execution_time= (int)(ini_get('max_execution_time'));
$max_input_time= (int)(ini_get('max_input_time'));
$upload_mb = min($max_upload, $max_post, $memory_limit);
$uptime_mb = min($max_execution_time,$max_input_time);
?>