diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-10 22:47:52 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-10 22:47:52 +0100 |
commit | 87db0c9f121297808012f3372c33e65bc621b4d9 (patch) | |
tree | b117c7fe932c8de9b3501682b915d88e739abc78 | |
parent | dodal prebrano bool v fetchsporocilaseznam, obv pustil v idju, za legacy razloge in angl./backwards/ kompatibilnost (diff) | |
download | gimsisextclient-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.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |