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

  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 5511 2011-07-25 07:53:32Z Tomm $

 * $Id: functions.php 5544 2011-08-08 15:41:40Z Tomm $

 */

/**

 */

/**

Zeile 649Zeile 649
 */
function check_template($template)
{

 */
function check_template($template)
{

	// Check to see of $config is in the template
if(preg_match("#\\\$(GLOBALS\\s*\\[\\s*'(GLOBALS|config)'\\s*\\]|(config|(GLOBALS\\s*\\[\\s*'mybb'\\s*\\]|mybb)\\s*->\\s*config)(?![A-Za-z0-9_]))#", $template))

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

	{
return true;
}

	{
return true;
}