summaryrefslogtreecommitdiffstats
path: root/main.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-13 18:22:36 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2019-11-13 18:22:36 +0100
commitf4fe6a51f353c54cbede1bcc9a0603a873f5621d (patch)
tree7fdec0217261197cba5485108abbcdd9d53a542f /main.php
parentzbrisal changelog iz endpoint docs (diff)
downloadgimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar.gz
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar.bz2
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar.lz
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar.xz
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.tar.zst
gimsisextclient-f4fe6a51f353c54cbede1bcc9a0603a873f5621d.zip
Diffstat (limited to 'main.php')
-rw-r--r--main.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.php b/main.php
index 645be30..8a43ab0 100644
--- a/main.php
+++ b/main.php
@@ -508,9 +508,9 @@ Errors:
$xmlDoc = new DOMDocument();
$xmlDoc->loadHTML( $sporocilo_output );
$textarea = DOMinnerHTML($xmlDoc->getElementById( "ctl00_ModalMasterBody_edtBesediloExt" ));
- $zadeva = get_string_between($sporocilo_output, '<input name="ctl00$ModalMasterBody$edtZadeva" type="text" value="', '" id="ctl00_ModalMasterBody_edtZadeva" />');
- $telo = get_string_between($textarea, "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;", "&lt;/p&gt;\n");
- $posiljatelj = get_string_between($textarea, "&gt;&lt;b&gt;Od&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: "); // ne trudi se za prejemnika, gimsisglitch(C)12
+ $zadeva = html_entity_decode(get_string_between($sporocilo_output, '<input name="ctl00$ModalMasterBody$edtZadeva" type="text" value="', '" id="ctl00_ModalMasterBody_edtZadeva" />'));
+ $telo = html_entity_decode(html_entity_decode(get_string_between($textarea, "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;", "&lt;/p&gt;\n")));
+ $posiljatelj = html_entity_decode(html_entity_decode(get_string_between($textarea, "&gt;&lt;b&gt;Od&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: "))); // ne trudi se za prejemnika, gimsisglitch(C)12
$datumincas = get_string_between($textarea, "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Za&lt;/b&gt;: "); // pazi, tale je za ljudi
$cas = explode(":", end(explode(" ", $datumincas)));
$datum['dan'] = intval(substr(explode(" ", $datumincas)[0], 0, -1)); // da ni .