summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-10 22:47:52 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-10 22:47:52 +0100
commit87db0c9f121297808012f3372c33e65bc621b4d9 (patch)
treeb117c7fe932c8de9b3501682b915d88e739abc78
parentdodal prebrano bool v fetchsporocilaseznam, obv pustil v idju, za legacy razloge in angl./backwards/ kompatibilnost (diff)
downloadgimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar.gz
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar.bz2
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar.lz
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar.xz
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.tar.zst
gimsisextclient-87db0c9f121297808012f3372c33e65bc621b4d9.zip
-rw-r--r--main.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.php b/main.php
index 97791c3..bcb1c3f 100644
--- a/main.php
+++ b/main.php
@@ -54,7 +54,7 @@ Errors:
class gimsisextClient {
private $username;
private $password;
- public $version = array(0, 7, 6);
+ public $version = array(0, 7, 7);
private $programname = "gimsisextclient";
private $programdomain = 'gimsisextclient.gimb.tk';
private $cookiedir; // set at runtime, ker je get_curerent_user, v login()
@@ -137,6 +137,9 @@ Errors:
if (startsWith(DOMinnerHTML($sn), "Uporabnik je začasno zaklenjen")) {
return array(-5, end(explode(" ", DOMinnerHTML($sn))));
}
+ if (endsWith(DOMinnerHTML($sn), "ni prijavni podatki. Prijava ni uspela.")) {
+ return -6;
+ }
}
}
return $ch;