News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Why does my db_query detect a 'hacking attempt'?

Started by Glyph, October 01, 2016, 12:19:23 AM

Previous topic - Next topic

Glyph

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone - Arr!
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');

// Hmm... no SSI.php and no SMF? - This ship will not sail.
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Extend the planks!
db_extend('packages');

// General Utility Functions - We sail the seas!
global $smcFunc, $modSettings;

// Are we using MySQL and do we support InnoDB?
if ($smcFunc['db_title'] === 'MySQL') {
$innodb_support = $smcFunc['db_query']('', '
SELECT SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE = \'InnoDB\';'
);
}


Results:
QuoteAn Error Has Occurred!
Hacking attempt...
Back

If I can't do this, what other options do I have to check for InnoDB support?
Personal TODO:

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: