<?php
/* phpMyAdmin configuration for Nordic Storium */

// Disable auto-login
$cfg['Servers'][1]['auth_type'] = 'cookie';

// Enable security features
$cfg['LoginCookieRecall'] = false;
$cfg['LoginCookieStore'] = 0;
$cfg['AllowArbitraryServer'] = false;
$cfg['Servers'][1]['AllowNoPassword'] = false;
$cfg['Servers'][1]['AllowRoot'] = true;
$cfg['Servers'][1]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][1]['AllowDeny']['rules'] = array();

// Enable logging
$cfg['Servers'][1]['LogoutURL'] = './index.php';
$cfg['Servers'][1]['SessionTimeZone'] = 'UTC';

// Disable dangerous features
$cfg['Servers'][1]['AllowUserDropDatabase'] = false;
$cfg['Servers'][1]['DisableIS'] = false;

// Set control user for advanced features
$cfg['Servers'][1]['controluser'] = 'pma_control';
$cfg['Servers'][1]['controlpass'] = getenv('PMA_CONTROL_PASS');

// Bookmark feature
$cfg['Servers'][1]['bookmarktable'] = 'pma__bookmark';

// For PDF generation
$cfg['Servers'][1]['pdf_pages'] = 'pma__pdf_pages';

// History feature
$cfg['Servers'][1]['history'] = 'pma__history';

// Designer feature
$cfg['Servers'][1]['designer_settings'] = 'pma__designer_settings';

// Export templates
$cfg['Servers'][1]['export_templates'] = 'pma__export_templates';

// Recent tables
$cfg['Servers'][1]['recent'] = 'pma__recent';

// Favorite tables
$cfg['Servers'][1]['favorite'] = 'pma__favorite';

// Table UI preferences
$cfg['Servers'][1]['table_uiprefs'] = 'pma__table_uiprefs';

// User preferences
$cfg['Servers'][1]['userconfig'] = 'pma__userconfig';

// Track changes
$cfg['Servers'][1]['tracking'] = 'pma__tracking';

// User preferences storage
$cfg['Servers'][1]['users'] = 'pma__users';

// Navigation width
$cfg['Servers'][1]['navigationwidth'] = 240;

// Max rows
$cfg['MaxRows'] = 50;

// Theme
$cfg['ThemeDefault'] = 'pmahomme';

// Default language
$cfg['DefaultLang'] = 'en';

// Enable SSL if available
$cfg['ForceSSL'] = false;
?>