Vergleich announcements.php - 1.6.6 - 1.6.9

  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 5565 2011-09-08 09:07:55Z Tomm $

 * $Id$

 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'announcements.php');


 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'announcements.php');


$templatelist = "announcement,postbit_groupimage,postbit_reputation,postbit_avatar,postbit_online,postbit_offline,postbit_find,postbit_pm,postbit_email,postbit_www,postbit_author_user,announcement_edit,announcement_quickdelete,postbit";

$templatelist = "announcement,postbit_groupimage,postbit_reputation,postbit_avatar,postbit_online,postbit_offline,postbit_find,postbit_pm,postbit_email,postbit_www,postbit_author_user,announcement_edit,announcement_quickdelete,postbit,postbit_rep_button ";

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


Zeile 99Zeile 99
$announcementarray['dateline'] = $announcementarray['startdate'];
$announcementarray['userusername'] = $announcementarray['username'];
$announcement = build_postbit($announcementarray, 3);

$announcementarray['dateline'] = $announcementarray['startdate'];
$announcementarray['userusername'] = $announcementarray['username'];
$announcement = build_postbit($announcementarray, 3);

 
$announcementarray['subject'] = $parser->parse_badwords($announcementarray['subject']);

$lang->forum_announcement = $lang->sprintf($lang->forum_announcement, htmlspecialchars_uni($announcementarray['subject']));

if($announcementarray['startdate'] > $mybb->user['lastvisit'])

$lang->forum_announcement = $lang->sprintf($lang->forum_announcement, htmlspecialchars_uni($announcementarray['subject']));

if($announcementarray['startdate'] > $mybb->user['lastvisit'])

Zeile 106Zeile 107
	$setcookie = true;
if($mybb->cookies['mybb']['announcements'])
{

	$setcookie = true;
if($mybb->cookies['mybb']['announcements'])
{

		$cookie = unserialize(stripslashes($mybb->cookies['mybb']['announcements']));

		$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']));

	
if(isset($cookie[$announcementarray['aid']]))
{

	
if(isset($cookie[$announcementarray['aid']]))
{