summaryrefslogtreecommitdiffstats
path: root/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'main.php')
-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;