diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 21:05:39 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2019-11-08 21:05:39 +0100 |
commit | bdca978560a8758a1626760c3ec9f160b1f7f849 (patch) | |
tree | e5e89dcbe0034eec375384bdd09dcc79d30d9cd7 | |
parent | zadevi in telesu zbrišem 1. in zadnji znak, so presledki pri fetchsporocilo (diff) | |
download | gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar.gz gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar.bz2 gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar.lz gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar.xz gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.tar.zst gimsisextclient-bdca978560a8758a1626760c3ec9f160b1f7f849.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, 4); + public $version = array(0, 7, 5); 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'] = substr(str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))), 1, -1); + $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, str_replace("\t", null DOMinnerHTML($sn))))); 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'] = substr(explode("<hr>", DOMinnerHTML($divn))[0], 1, -1); + $msg['telo'] = explode("<hr>", DOMinnerHTML($divn))[0]; } } } |