';
} else {
print '
';
}
}
function APWTSettings() {
if ( !current_user_can( 'manage_options' ) ) {
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
}
if ($_POST['B1'] != '') {
if((strlen($_POST['apikey']) != 25) && ($_POST['apikey'] != '')) {
$message = 'Invalid API Key
';
$count = 0;
} else {
//they have entered their api key - now save it
$_SESSION['serverurl'] = '';
if (!add_option( 'APWTAPIKEY', $_POST['apikey'])) {
update_option( 'APWTAPIKEY', $_POST['apikey'] );
if($_POST['apikey'] == '') {
$count = 0;
} else {
$count = 1;
}
}
}
if((strlen($_POST['apiauth']) != 16) && ($_POST['apiauth'] != '')) {
$message = 'Invalid API Auth
';
$count2 = 0;
} else {
//they have entered their api key - now save it
if (!add_option( 'APWTAPIAUTH', $_POST['apiauth'])) {
update_option( 'APWTAPIAUTH', $_POST['apiauth'] );
if($_POST['apiauth'] == '') {
$count2 = 0;
} else {
$count2 = 1;
}
}
}
$count3 = $count + $count2;
if($count3 == 2) {
$message = 'Congratulations You Are Ready To Go!
';
}
}
print $message;
?>
AllProWebTools API Settings
If you don't already have an AllProWebTools account, you can sign up for one here.
';
}
}
?>