src/Networks/Publicideas.php 1 location
|
@@ 45-63 (lines=19) @@
|
42 |
|
$this->login( $this->_username, $this->_password ); |
43 |
|
} |
44 |
|
|
45 |
|
public function login(string $username, string $password,string $idSite=''): bool{ |
46 |
|
$this->_logged = false; |
47 |
|
if (isNullOrEmpty( $username ) || isNullOrEmpty( $password )) { |
48 |
|
|
49 |
|
return false; |
50 |
|
} |
51 |
|
$this->_username = $username; |
52 |
|
$this->_password = $password; |
53 |
|
$credentials = array(); |
54 |
|
$credentials["user"] = $this->_username; |
55 |
|
$credentials["password"] = $this->_password; |
56 |
|
$this->_network->login($credentials); |
57 |
|
if ($this->_network->checkConnection()) { |
58 |
|
$this->_logged = true; |
59 |
|
|
60 |
|
} |
61 |
|
|
62 |
|
return $this->_logged; |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* @return bool |
src/Networks/TradeDoubler.php 1 location
|
@@ 46-66 (lines=21) @@
|
43 |
|
$this->login( $this->_username, $this->_password ); |
44 |
|
} |
45 |
|
|
46 |
|
public function login(string $username, string $password,string $idSite=''): bool |
47 |
|
{ |
48 |
|
$this->_logged = false; |
49 |
|
if (isNullOrEmpty( $username ) || isNullOrEmpty( $password )) { |
50 |
|
|
51 |
|
return false; |
52 |
|
} |
53 |
|
$this->_username = $username; |
54 |
|
$this->_password = $password; |
55 |
|
$credentials = array(); |
56 |
|
$credentials["user"] = $this->_username; |
57 |
|
$credentials["password"] = $this->_password; |
58 |
|
$this->_network->login( $credentials ); |
59 |
|
|
60 |
|
if ($this->_network->checkConnection()) { |
61 |
|
$this->_logged = true; |
62 |
|
|
63 |
|
} |
64 |
|
|
65 |
|
return $this->_logged; |
66 |
|
} |
67 |
|
|
68 |
|
/** |
69 |
|
* @return bool |
src/Networks/WebGains.php 1 location
|
@@ 48-65 (lines=18) @@
|
45 |
|
$this->login( $this->_username, $this->_password ); |
46 |
|
} |
47 |
|
|
48 |
|
public function login(string $username, string $password,string $idSite=''): bool{ |
49 |
|
$this->_logged = false; |
50 |
|
if (isNullOrEmpty( $username ) || isNullOrEmpty( $password )) { |
51 |
|
|
52 |
|
return false; |
53 |
|
} |
54 |
|
$this->_username = $username; |
55 |
|
$this->_password = $password; |
56 |
|
$credentials = array(); |
57 |
|
$credentials["user"] = $this->_username; |
58 |
|
$credentials["password"] = $this->_password; |
59 |
|
$this->_network->login($credentials); |
60 |
|
if ($this->_network->checkConnection()) { |
61 |
|
$this->_logged = true; |
62 |
|
} |
63 |
|
|
64 |
|
return $this->_logged; |
65 |
|
} |
66 |
|
|
67 |
|
/** |
68 |
|
* @return bool |
src/Networks/AffiliateWindow.php 1 location
|
@@ 43-61 (lines=19) @@
|
40 |
|
$this->login( $this->_username, $this->_password ); |
41 |
|
} |
42 |
|
|
43 |
|
public function login(string $username, string $password): bool |
44 |
|
{ |
45 |
|
$this->_logged = true; |
46 |
|
if (isNullOrEmpty( $username ) || isNullOrEmpty( $password )) { |
47 |
|
return false; |
48 |
|
} |
49 |
|
$this->_username = $username; |
50 |
|
$this->_password = $password; |
51 |
|
$credentials = array(); |
52 |
|
$credentials["accountid"] = $this->_username; |
53 |
|
$credentials["apipassword"] = $this->_password; |
54 |
|
$this->_network->login( $credentials ); |
55 |
|
if ($this->_network->checkConnection()) { |
56 |
|
$this->_logged = true; |
57 |
|
|
58 |
|
} |
59 |
|
|
60 |
|
return $this->_logged; |
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
|
* @return bool |