Vergleich announcements.php - 1.6.4 - 1.6.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: announcements.php 5476 2011-06-24 14:49:59Z Tomm $

 * $Id: announcements.php 5565 2011-09-08 09:07:55Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 100Zeile 100
$announcementarray['userusername'] = $announcementarray['username'];
$announcement = build_postbit($announcementarray, 3);
$lang->forum_announcement = $lang->sprintf($lang->forum_announcement, htmlspecialchars_uni($announcementarray['subject']));

$announcementarray['userusername'] = $announcementarray['username'];
$announcement = build_postbit($announcementarray, 3);
$lang->forum_announcement = $lang->sprintf($lang->forum_announcement, htmlspecialchars_uni($announcementarray['subject']));

 

if($announcementarray['startdate'] > $mybb->user['lastvisit'])
{
$setcookie = true;
if($mybb->cookies['mybb']['announcements'])
{
$cookie = unserialize(stripslashes($mybb->cookies['mybb']['announcements']));

if(isset($cookie[$announcementarray['aid']]))
{
$setcookie = false;
}
}

if($setcookie)
{
my_set_array_cookie('announcements', $announcementarray['aid'], $announcementarray['startdate'], -1);
}
}


$plugins->run_hooks("announcements_end");



$plugins->run_hooks("announcements_end");