diff options
Diffstat (limited to 'main.php')
-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; |