Vergleich admin/inc/functions.php - 1.6.5 - 1.6.16

  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: functions.php 5544 2011-08-08 15:41:40Z Tomm $

 * $Id$

 */

/**

 */

/**

Zeile 153Zeile 153
	if($from > 2)
{
$first = fetch_page_url($url, 1);

	if($from > 2)
{
$first = fetch_page_url($url, 1);

		$pagination .= "<a href=\"{$first}\" title=\"Page 1\" class=\"pagination_first\">1</a> ... ";

		$pagination .= "<a href=\"{$first}\" title=\"{$lang->page} 1\" class=\"pagination_first\">1</a> ... ";

	}

for($i = $from; $i <= $to; ++$i)

	}

for($i = $from; $i <= $to; ++$i)

Zeile 298Zeile 298
			else
{
$ppolls = 0;

			else
{
$ppolls = 0;

			}

if($canpostattachments[$usergroup['gid']] == 1)
{
$pattachments = 1;
}
else
{
$pattachments = 0;

 
			}

if(!$preplies && !$pthreads)

			}

if(!$preplies && !$pthreads)

Zeile 314Zeile 305
				$ppost = 0;
}
else

				$ppost = 0;
}
else

			{

			{

				$ppost = 1;
}


				$ppost = 1;
}


Zeile 324Zeile 315
				"canview" => intval($pview),
"canpostthreads" => intval($pthreads),
"canpostreplys" => intval($preplies),

				"canview" => intval($pview),
"canpostthreads" => intval($pthreads),
"canpostreplys" => intval($preplies),

				"canpostattachments" => intval($pattachments),

 
				"canpostpolls" => intval($ppolls),
);


				"canpostpolls" => intval($ppolls),
);


Zeile 352Zeile 342
function check_admin_permissions($action, $error = true)
{
global $mybb, $page, $lang, $modules_dir;

function check_admin_permissions($action, $error = true)
{
global $mybb, $page, $lang, $modules_dir;

	

	

	if(is_super_admin($mybb->user['uid']))
{
return true;

	if(is_super_admin($mybb->user['uid']))
{
return true;

Zeile 479Zeile 469
			else
{
$perms_def = $perm['permissions'];

			else
{
$perms_def = $perm['permissions'];

			}
}


			}
}


		// Figure out group permissions...ugh.
foreach($perms_group as $gperms)
{

		// Figure out group permissions...ugh.
foreach($perms_group as $gperms)
{

Zeile 567Zeile 557
		else
{
if(!empty($page))

		else
{
if(!empty($page))

			{

			{

				if($adminoption['uid'] == 0)
{
$adminoption['permissions'][$tab][$page] = 0;

				if($adminoption['uid'] == 0)
{
$adminoption['permissions'][$tab][$page] = 0;

Zeile 623Zeile 613
		// Has the expiry dateline been set yet?
if($attempts['loginlockoutexpiry'] == 0 && $return_num == false)
{

		// Has the expiry dateline been set yet?
if($attempts['loginlockoutexpiry'] == 0 && $return_num == false)
{

			$db->update_query("adminoptions", array("loginlockoutexpiry" => TIME_NOW+(intval($mybb->settings['loginattemptstimeout'])*60)), "uid='".intval($uid)."'", 1);

			$db->update_query("adminoptions", array("loginlockoutexpiry" => TIME_NOW+(intval($mybb->settings['loginattemptstimeout'])*60)), "uid='".intval($uid)."'");

		}

// Are we returning the # of login attempts?

		}

// Are we returning the # of login attempts?

Zeile 651Zeile 641
{
// Check to see if our database password is in the template
if(preg_match("#database'?\\s*\]\\s*\[\\s*'?password#", $template))

{
// Check to see if our database password is in the template
if(preg_match("#database'?\\s*\]\\s*\[\\s*'?password#", $template))

 
	{
return true;
}

// System calls via backtick
if(preg_match('#\$\s*\{#', $template))

	{
return true;
}

	{
return true;
}