@@ -236,7 +236,7 @@ function admin(&$out)
236
236
}
237
237
238
238
if ($ this ->ajax && $ op == 'didyouknow ' ) {
239
- $ result = $ this ->marketRequest ('op=didyouknow ' , 0 );
239
+ $ result = $ this ->marketRequest ('op=didyouknow ' , 7 * 24 * 60 * 60 );
240
240
$ data = json_decode ($ result , true );
241
241
if ($ data ['BODY ' ]) {
242
242
echo nl2br (htmlspecialchars ($ data ['BODY ' ]));
@@ -253,7 +253,7 @@ function admin(&$out)
253
253
}
254
254
255
255
if ($ this ->ajax && $ op == 'news ' ) {
256
- $ result = $ this ->marketRequest ('op=news ' , 15 * 60 ); //15*60
256
+ $ result = $ this ->marketRequest ('op=news ' , 7 * 24 * 60 * 60 );
257
257
$ data = json_decode ($ result , true );
258
258
//echo json_encode($data);
259
259
if (is_array ($ data )) {
@@ -300,20 +300,6 @@ function admin(&$out)
300
300
echo '<div class="fullTextNewsClass" id="news_title_ ' . $ i . '" style="display: none;margin-top: 10px;padding-top: 10px;border-top: 1px solid lightgray;"><blockquote style="border-left: 5px solid #4d96d3;"> ' . $ body . ' ' . $ linkDetail . '</blockquote></div> ' ;
301
301
echo '</li> ' ;
302
302
303
-
304
- //echo '<a href="javascript://" onclick="$(\'#news_title_'.$i.'\').toggle(\'slow\');" class="list-group-item" style="padding-top: 10px;padding-bottom: 5px;">';
305
- //echo '<h5 id="news_head_'.$i.'" class="list-group-item-heading">'.(htmlspecialchars($data[$i]['TITLE'])).'</h5>';
306
- //$body = nl2br(htmlspecialchars($data[$i]['BODY']));
307
- //$body = str_replace('&', '&', $body);
308
- //$body = preg_replace('/(https?:\/\/[\w\d\-\/\.\?&=#]+)/', '<a href="$1" target=_blank>$1</a>', $body);
309
-
310
- //echo '<p id="news_title_'.$i.'" style="display: none;" class="list-group-item-text">'.(htmlspecialchars($data[$i]['BODY'])).'</p>';
311
- //echo '</a>';
312
-
313
-
314
- /* if ($data[$i]['LINK'] != '') {
315
- echo "<br/><a href='" . $data[$i]['LINK'] . "' target='_blank'>" . LANG_DETAILS . "</a>";
316
- } */
317
303
}
318
304
echo '</ul> ' ;
319
305
}
0 commit comments