Vergleich inc/init.php - 1.4.11 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: init.php 4427 2009-08-13 21:22:07Z RyanGordon $

 * $Id: init.php 4864 2010-04-10 09:13:19Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 116Zeile 116
// Check if our DB engine is loaded
if(!extension_loaded($db->engine))
{

// Check if our DB engine is loaded
if(!extension_loaded($db->engine))
{

	// Try and manually load it - DIRECTORY_SEPARATOR checks if running windows
if(DIRECTORY_SEPARATOR == '\\')
{
@dl('php_'.$db->engine.'.dll');
}
else
{
@dl($db->engine.'.so');
}

// Check again to see if we've been able to load it
if(!extension_loaded($db->engine))
{
// Throw our super awesome db loading error
$mybb->trigger_generic_error("sql_load_error");
}

	// Throw our super awesome db loading error
$mybb->trigger_generic_error("sql_load_error");















}

require_once MYBB_ROOT."inc/class_templates.php";

}

require_once MYBB_ROOT."inc/class_templates.php";

Zeile 225Zeile 211

// Set up any shutdown functions we need to run globally
add_shutdown('send_mail_queue');


// Set up any shutdown functions we need to run globally
add_shutdown('send_mail_queue');


// Generate a random number for performing random actions.
$rand = mt_rand(0, 10);

 

/* URL Definitions */
if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))


/* URL Definitions */
if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))