18 if (!isset($_GET[
'id'])) {
23 require_once
'OPiQuotations/log.inc';
28 ini_set(
'display_errors',
'stdout');
29 ini_set(
'display_startup_errors', 1);
30 ini_set(
'html_errors', 1);
34 assert_options(ASSERT_ACTIVE,
true);
35 assert_options(ASSERT_WARNING,
true);
36 assert_options(ASSERT_BAIL,
true);
41 ini_set(
'display_errors',
'stderr');
42 ini_set(
'display_startup_errors', 0);
43 ini_set(
'html_errors', 0);
47 assert_options(ASSERT_ACTIVE,
false);
48 assert_options(ASSERT_WARNING,
false);
49 assert_options(ASSERT_BAIL,
false);
51 set_error_handler(
'\OPiQuotations\error_handler');
56 mb_internal_encoding(
'UTF-8');
57 mb_regex_encoding(
'UTF-8');
58 mb_http_output(
'UTF-8');
59 mb_detect_order(
'UTF-8');
62 require_once
'OPiQuotations/OPiQuotations.inc';
67 $id = (int)$_GET[
'id'];
72 $url =
'http://www.opimedia.be/OPiCitations/?id='.$id;
85 ?
' ('.$quot->author().
')' 87 ?
' (nation '.$quot->nation().
')' 98 <a rel=
"nofollow" href=
"/OPiCitations/public/php/simple-diaspora-sharing-button/selectpod.php?title=<?php 103 echo $encoded_quot_all.rawurlencode(' 105 ?>" target=
"_blank" title=
"Partager sur diaspora*"><img src=
"/OPiCitations/public/img/diaspora-t.png" width=
"32" height=
"32" alt=
"Partager sur diaspora*"></a>
108 <a rel=
"nofollow" href=
"mailto:?subject=<?php 111 echo $encoded_quot_all.rawurlencode(' 113 ?>" title=
"Envoyer par e-mail"><img src=
"/OPiCitations/public/img/sharing/Email-t.png" width=
"32" height=
"32" alt=
"Envoyer par e-mail"></a>
116 <a rel=
"nofollow" href=
"https://www.facebook.com/sharer/sharer.php?u=<?php 118 ?>" target=
"_blank" title=
"Partager sur Facebook"><img src=
"/OPiCitations/public/img/sharing/Facebook-t.png" width=
"32" height=
"32" alt=
"Partager sur Facebook"></a>
121 <a rel=
"nofollow" href=
"https://www.linkedin.com/shareArticle?mini=true&title=<?php 128 echo $encoded_quot_all; 129 ?>" target=
"_blank" title=
"Partager sur LinkedIn"><img src=
"/OPiCitations/public/img/sharing/LinkedIn-t.png" width=
"32" height=
"32" alt=
"Partager sur LinkedIn"></a>
132 <a rel=
"nofollow" href=
"https://twitter.com/intent/tweet?text=<?php 133 echo $encoded_quot_short; 134 if ($quot_short_length + 21 <= $twitter_max_length) { 135 echo '&via=OPiCitationJour'; # ' via @OPiCitationJour': length 21 137 ?>" target=
"_blank" title=
"Tweeter"><img src=
"/OPiCitations/public/img/sharing/Twitter-t.png" width=
"32" height=
"32" alt=
"Tweeter"></a>
143 echo
'<li style="background-color:#f0f0f0; border:1px solid black; left:-3em; position:absolute; top:-1em; z-index:10001" onclick="this.style.display=\'none\';"><pre style="margin:0"> 145 echo
'<div style="border-bottom:1px solid black">title: ';
147 echo
'</div><div style="border-bottom:1px solid black">URL: ';
149 echo
'</div><div style="border-bottom:1px solid black">short:<br>';
151 echo
'</div><div style="border-bottom:1px solid black">text:<br>';
153 echo
'</div></pre></li> 155 echo
'<li style="background-color:white; border:1px solid black; left:-3em; position:absolute; top:-2em; z-index:10002" onclick="this.style.display=\'none\';"><pre style="margin:0"> 157 echo
'<div style="border-bottom:1px solid black">title: ';
159 echo
'</div><div style="border-bottom:1px solid black">URL: ';
161 echo
'</div><div style="border-bottom:1px solid black">short:<br>';
163 echo
'</div><div style="border-bottom:1px solid black">short normalized:<br>';
164 $encoded_quot_short_normalized = Normalizer::normalize(
$quot_short, Normalizer::FORM_C);
165 var_dump($encoded_quot_short_normalized);
166 echo
'</div><div style="border-bottom:1px solid black">text:<br>';
168 echo
'</div></pre></li> 174 <li
class=
"close" onclick=
"sharingClose(this); return false;">×</li>
Class to get OPiQuotation and informations from the databse.