summaryrefslogtreecommitdiffstats
path: root/main.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:56:01 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:56:01 +0100
commit227a777149e0d0e507c15166fda59c27c649ec50 (patch)
treeb8201ade08c1ac7e9421c79e82d568647a710b9b /main.php
parentfetchsporocilo -> še en html_entity_decode pri (diff)
downloadgimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar.gz
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar.bz2
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar.lz
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar.xz
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.tar.zst
gimsisextclient-227a777149e0d0e507c15166fda59c27c649ec50.zip
Diffstat (limited to 'main.php')
-rw-r--r--main.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.php b/main.php
index c131280..53cdc43 100644
--- a/main.php
+++ b/main.php
@@ -75,7 +75,7 @@ Errors:
private $username;
private $adminusername = "anton.sijanec";
private $password;
- public $version = array(0, 10, 1);
+ public $version = array(0, 10, 2);
private $programname = "gimsisextclient";
private $programdomain = 'gimsisextclient.gimb.tk';
private $cookiedir; // set at runtime, ker je get_curerent_user, v login()
@@ -524,7 +524,7 @@ Errors:
curl_setopt($ch, CURLOPT_POST, 0);
$sporocilo_output = curl_exec($ch);
$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(html_entity_decode(get_string_between($sporocilo_output, "&lt;/span&gt;&lt;/p&gt;", "</textarea>"))));
+ $telo = str_replace("&#39;", "'", html_entity_decode(html_entity_decode(get_string_between($sporocilo_output, "&lt;/span&gt;&lt;/p&gt;", "</textarea>"))));
$posiljatelj = html_entity_decode(html_entity_decode(get_string_between($sporocilo_output, "&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($sporocilo_output, "&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)));