diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 21:02:10 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 21:02:10 +0100 |
commit | 8e91958f56a6e60b53fc812e5f7028f5205c7100 (patch) | |
tree | 05e145ac80e9ac326f70b74d0991db997b98fad2 | |
parent | fix da se zadeva pri fetchsporocilo pokaze (diff) | |
download | gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar.gz gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar.bz2 gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar.lz gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar.xz gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.tar.zst gimsisextclient-8e91958f56a6e60b53fc812e5f7028f5205c7100.zip |
-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, 3); + public $version = array(0, 7, 4); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -521,7 +521,7 @@ Errors: foreach($dn->getElementsByTagName('div') as $sn) { switch($sn->getAttribute("class")) { case "msgSubjectS": - $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))); + $msg['zadeva'] = substr(str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))), 1, -1); break; } } @@ -533,7 +533,7 @@ Errors: $msg['ura'] = explode(" ", get_string_between(DOMinnerHTML($divn->getElementsByTagName('span')[0]), "(", ")"))[1]; $msg['prejemnik'] = DOMinnerHTML($divn->getElementsByTagName('span')[1]); } elseif ($divn->getAttribute("class") == "gCursorAuto") { - $msg['telo'] = explode("<hr>", DOMinnerHTML($divn))[0]; + $msg['telo'] = substr(explode("<hr>", DOMinnerHTML($divn))[0], 1, -1); } } } |