Bugfixes Update
This commit is contained in:
@@ -91,7 +91,9 @@ class AsdCurl
|
||||
public function login_asd($ch,$env)
|
||||
{
|
||||
$SCHULPORTAL_ASD_BASE_URL = Configure::read('AsdCurl.asdbaseurl.'.$env);
|
||||
$this->exec_curl($ch, $SCHULPORTAL_ASD_BASE_URL . '/asddv/dv_xy_00.jsf', false);
|
||||
//debug($SCHULPORTAL_ASD_BASE_URL);die;
|
||||
//$this->exec_curl($ch, $SCHULPORTAL_ASD_BASE_URL . '/asddv/dv_xy_00.jsf', false);
|
||||
$this->exec_curl($ch, $SCHULPORTAL_ASD_BASE_URL . '/login/login.jsf', false);
|
||||
if(!($this->status)) {
|
||||
die($this->error);
|
||||
}
|
||||
@@ -99,7 +101,7 @@ class AsdCurl
|
||||
|
||||
$login_data = [
|
||||
'asd_username' => 'A005_TrinklW',
|
||||
'asd_password' => 'HiegTzs!183',
|
||||
'asd_password' => 'HiegTzs!195',
|
||||
//'asd_username' => 'A005_KnollmüllerP',
|
||||
//'asd_password' => 'Ooricha8e!',
|
||||
];
|
||||
@@ -176,6 +178,19 @@ class AsdCurl
|
||||
if(!($this->status)) {
|
||||
die($this->error);
|
||||
}
|
||||
|
||||
$vorschalt = $this->get_string_between($this->html,'an parallelen Zugriffen zu ',' beim');
|
||||
//debug($vorschalt);
|
||||
if($vorschalt == 'Anmeldeproblemen') {
|
||||
|
||||
$post = [
|
||||
'choice' => 1
|
||||
];
|
||||
|
||||
$this->exec_curl($ch, 'https://portal.schulen.bayern.de/my.policy', $post);
|
||||
//debug($this->html);
|
||||
}
|
||||
|
||||
//echo $this->html; die;
|
||||
$login_data = [
|
||||
'portal_username' => 'asd.trinkl',
|
||||
@@ -183,23 +198,26 @@ class AsdCurl
|
||||
];
|
||||
|
||||
$post = [
|
||||
'user_name' => $login_data['portal_username'],
|
||||
'username' => $login_data['portal_username'],
|
||||
'password' => $login_data['portal_password'],
|
||||
'repository' => 'schulen.bayern.de',
|
||||
'site_name' => 'schulportal',
|
||||
'secure' => '1',
|
||||
'resource_id' => '2',
|
||||
'login_type' => '2',
|
||||
//'repository' => 'schulen.bayern.de',
|
||||
//'site_name' => 'schulportal',
|
||||
//'secure' => '1',
|
||||
//'resource_id' => '2',
|
||||
//'login_type' => '2',
|
||||
];
|
||||
// Anmeldeformular fuer das Schulportal abschicken - Step 2
|
||||
|
||||
//https://portal.schulen.bayern.de/uniquesig2d1dfad4a11c25e42c462e53b4721e48/uniquesig0/SecureSchulportalPortalHomePage/
|
||||
//$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/SecureSchulportalPortalHomePage', $post);
|
||||
$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/InternalSite/Validate.asp', $post);
|
||||
//debug($SCHULPORTAL_BASE_URL);
|
||||
//$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/InternalSite/Validate.asp', $post);
|
||||
$this->exec_curl($ch,'https://portal.schulen.bayern.de/my.policy', $post);
|
||||
if(!($this->status)) {
|
||||
die($this->error);
|
||||
}
|
||||
$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/SecureSchulportalPortalHomePage/',false);
|
||||
//debug($this->html);die;
|
||||
//$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/SecureSchulportalPortalHomePage/',false);
|
||||
//debug($this->html);die;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user