diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 20:57:08 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 20:57:08 +0100 |
commit | 35c1a6ed88a7f8e2466e3ffc83144969b36f3485 (patch) | |
tree | 0d587fd5ac447ca212d77fb8a0b39cec9255d6af /main.php | |
parent | popotoma zbrisal fetchocene, dodajam, 0.7.1 nima fetchocene!!! updejt to 0.7.2 tkoj! (diff) | |
download | gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar.gz gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar.bz2 gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar.lz gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar.xz gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.tar.zst gimsisextclient-35c1a6ed88a7f8e2466e3ffc83144969b36f3485.zip |
Diffstat (limited to 'main.php')
-rw-r--r-- | main.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,7 +54,7 @@ Errors: class gimsisextClient { private $username; private $password; - public $version = array(0, 7, 2); + public $version = array(0, 7, 3); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -518,10 +518,10 @@ Errors: if ($tn->getAttribute("id") == "ctl00_ContentPlaceHolder1_gvwSporociloVrsta") { $msg = array(); foreach ($tn->getElementsByTagName("tbody")[0]->getElementsByTagName("td") as $dn) { - foreach($dn->getElementsByTagName('span') as $sn) { + foreach($dn->getElementsByTagName('div') as $sn) { switch($sn->getAttribute("class")) { case "msgSubjectS": - $msg['zadeva'] = DOMinnerHTML($sn); + $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))); break; } } |