<?php
-/* This plugin requires SQLAuth minimum version 1.0 */
+/* This plugin requires SQLDB minimum version 1.0 */
/** Define our PERMISSION to manage configuration blocks */
define('PERMISSION_CONFIG_BLOCKS', 'config_blocks');
function __construct()
{
- require_plugin("SQLAuth", "1.0");
+ require_plugin("SQLDB", "1.0");
Hook::func(HOOKTYPE_NAVBAR, 'config_blocks::add_navbar');
Hook::func(HOOKTYPE_USER_PERMISSION_LIST, 'config_blocks::permission_list');
public static function create_sql_table()
{
$conn = sqlnew();
- $conn->query("CREATE TABLE IF NOT EXISTS " . SQL_PREFIX . "configblocks (
+ $conn->query("CREATE TABLE IF NOT EXISTS " . get_config("mysql::table_prefix") . "configblocks (
block_id int AUTO_INCREMENT NOT NULL,
block_name VARCHAR(255) NOT NULL,
block_value VARCHAR(255) NOT NULL,