-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthontication.php
19 lines (18 loc) · 947 Bytes
/
authontication.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$wpapgetoption =get_option('wpsp_gpapoption');
$emailaddress = $wpapgetoption['username'];
$password = $wpapgetoption['password'];
//Gmail authontication check username and password
$loginconnection = conncetwithgoogleplus($emailaddress, $password);
if (!$loginconnection)
{
$msg ='<div class="success">Login Success</div>';
//Option Value
if ( get_option( 'wpsp_gpapoptionstatus' ) !== false ) update_option( 'wpsp_gpapoptionstatus' , 'success' ); else add_option('wpsp_gpapoptionstatus' , 'success' );
}
else
{
$msg = '<div class="error">'.$loginconnection.'</div>';
if ( get_option( 'wpsp_gpapoptionstatus' ) !== false ) update_option( 'wpsp_gpapoptionstatus' , 'failed' ); else add_option('wpsp_gpapoptionstatus' , 'failed' );
}
?>