summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-08 20:57:08 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-08 20:57:08 +0100
commit35c1a6ed88a7f8e2466e3ffc83144969b36f3485 (patch)
tree0d587fd5ac447ca212d77fb8a0b39cec9255d6af
parentpopotoma zbrisal fetchocene, dodajam, 0.7.1 nima fetchocene!!! updejt to 0.7.2 tkoj! (diff)
downloadgimsisextclient-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
-rw-r--r--main.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.php b/main.php
index fc8bff8..c7c4866 100644
--- a/main.php
+++ b/main.php
@@ -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;
}
}