From 87db0c9f121297808012f3372c33e65bc621b4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 10 Nov 2019 22:47:52 +0100 Subject: 0.7.7 => login vrze -6 ce je user napacen, -3 pa, ce je geslo napacno in ce user OBSTAJA (prej je samo -3 za napacno kombinacijo);;; hacky! --- main.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.php') 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; -- cgit v1.2.3