false, 'sort' => false, 'time' => false); $ezin_opts['url'] = array('images' => 'icons/'); $ezin_opts['sort_field'] = array('theme','group_name','ord'); $ezin_opts['language'] = 'EN'; $ezin_opts['encoding'] = $ezin_cfg['encoding']; $ezin_opts['ext_hsc'] = false; // Triggers $ezin_opts['triggers']['update']['after'] = 'inc-db/triggers/boxes.after'; $ezin_opts['triggers']['delete']['after'] = 'inc-db/triggers/boxes.after'; // Filters $ezin_opts['filters'] = 'theme = "'.$ezin_cfg['theme']['name'].'"'; // Field definitions $ezin_opts['fdd']['id'] = array( 'name'=>'ID', 'select'=>'T', 'maxlen'=>3, 'sort'=>true, 'options'=>'LDVFPCR', 'colattrs|LF' => 'align="center"', ); $ezin_opts['fdd']['theme'] = array( 'name' => 'Theme', 'select' => 'T', 'maxlen' => 765, 'sort' => true, 'options' => 'R', 'default' => $ezin_cfg['theme']['name'] ); $ezin_opts['fdd']['name'] = array( 'name' => 'Name', 'select' => 'T', 'maxlen' => 765, 'sort' => true, 'options' =>'LDVFPCR' ); $template_keys = ezin_admin_get_template_keys($ezin_sys['tmpl']['box']); if (count($template_keys) > 0) { $ezin_opts['fdd']['template_key'] = array( 'name'=>Platon::htmlspecialchars2('Template key'), 'sort'=>true, 'select'=>'T', 'options'=>'ACPDV', 'values2'=> array(''=>' - default template - '), 'values' => $template_keys ); } $ezin_opts['fdd']['bodytext'] = array( 'name' => 'Bodytext', 'select' => 'T', 'textarea' => array( 'rows' => 15, 'cols' => 65, 'wrap' =>'virtual'), 'options' => 'ACPVL', 'trimlen|L' => 100 ); include dirname(__FILE__).'/_credentials.inc.php'; // Execution code if (! ezin_admin_check_list_privileges($ezin_opts['options'])) { require 'inc-html/permdenied.html'; } else { require_once 'phpMyEdit/phpMyEdit.class.php'; new phpMyEdit($ezin_opts); } ?>