Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for Metafox/admin/inc-db/articles.inc.php between version 1.8 and 1.9

version 1.8, 2006/06/21 21:15:56 version 1.9, 2006/07/07 09:15:46
Line 17  $ezin_opts['multiple'] = '4';
Line 17  $ezin_opts['multiple'] = '4';
 $ezin_opts['navigation'] = $ezin_cfg['admin_navigation'].$ezin_cfg['admin_buttons_pos'];  $ezin_opts['navigation'] = $ezin_cfg['admin_navigation'].$ezin_cfg['admin_buttons_pos'];
 $ezin_opts['display'] = array('query' => false, 'sort'  => false, 'time'  => false);  $ezin_opts['display'] = array('query' => false, 'sort'  => false, 'time'  => false);
 $ezin_opts['url'] = array('images' => 'icons/');  $ezin_opts['url'] = array('images' => 'icons/');
 $ezin_opts['sort_field'] = array('-datetime', '-id');  $ezin_opts['sort_field'] = array($ezin_admin_action=='pages'?'access_key':'-datetime', '-id');
 $ezin_opts['language'] = 'EN';  $ezin_opts['language'] = 'EN';
   
 // Buttons  // Buttons
   
 $ezin_opts['buttons']['C']['up'] = array('save','more','cancel',  $ezin_opts['buttons']['C']['up'] = array('save','more','cancel', '   ',
         array('name' => 'wordclean', 'value' => 'Word clean', 'css' => 'pme-wordclean', 'disabled' => false));          array('name' => 'wordclean', 'value' => 'Word Clean', 'css' => 'pme-wordclean', 'disabled' => false),
           array('name' => 'switch', 'value' => 'Move to '.($ezin_admin_action=='pages'?'Articles':'Pages'),
                           'css' => 'pme-switch', 'disabled' => false));
 $ezin_opts['buttons']['C']['down'] = $ezin_opts['buttons']['C']['up'];  $ezin_opts['buttons']['C']['down'] = $ezin_opts['buttons']['C']['up'];
   
 // Triggers  // Triggers
Line 41  $ezin_opts['triggers']['insert']['after'
Line 43  $ezin_opts['triggers']['insert']['after'
 $ezin_opts['triggers']['update']['after'] = 'inc-db/triggers/articles.after';  $ezin_opts['triggers']['update']['after'] = 'inc-db/triggers/articles.after';
 $ezin_opts['triggers']['delete']['after'] = 'inc-db/triggers/articles.after';  $ezin_opts['triggers']['delete']['after'] = 'inc-db/triggers/articles.after';
   
   // Filters
   
   if ($ezin_admin_action == 'pages') {
           $ezin_opts['filters'] = 'UNIX_TIMESTAMP(datetime) = 0';
   } else {
           $ezin_opts['filters'] = 'UNIX_TIMESTAMP(datetime) != 0';
   }
   
 // Field definitions  // Field definitions
   
 $ezin_opts['fdd']['id'] = array(  $ezin_opts['fdd']['id'] = array(
                 'name'=>'ID',                  'name'=>($ezin_admin_action=='pages'?'Page ID':'Article ID'),
                 'select'=>'T',                  'select'=>'T',
                 'sort'=>true,                  'sort'=>true,
                 'size'=>5,                  'size'=>5,
Line 57  $ezin_opts['fdd']['id'] = array(
Line 67  $ezin_opts['fdd']['id'] = array(
                 'escape' => false                  'escape' => false
                 );                  );
   
 $ezin_opts['fdd']['access_key'] = array(  
                 'name'=>Platon::htmlspecialchars2('Access key'),  
                 'name|LF'=>'Key',  
                 'sort'=>true,  
                 'select'=>'T',  
                 'options'=>'ACPDV',  
                 );  
   
 $template_keys = ezin_admin_get_template_keys($ezin_sys['tmpl']['articles']);  
 if (count($template_keys) > 0) {  
         $ezin_opts['fdd']['template_key'] = array(  
                         'name'=>Platon::htmlspecialchars2('Template key'),  
                         'name|LF'=>'Key',  
                         'sort'=>true,  
                         'select'=>'T',  
                         'options'=>'ACPDV',  
                         'values2'=> array(''=>' - default template - '),  
                         'values' => $template_keys  
                         );  
 }  
   
 $ezin_opts['fdd']['status'] = array(  $ezin_opts['fdd']['status'] = array(
                 'name'=>'Status',                  'name'=>'Status',
                 'name|LF'=>'S',                  'name|LF'=>'S',
Line 97  $ezin_opts['fdd']['status'] = array(
Line 86  $ezin_opts['fdd']['status'] = array(
                 'sort'=>true                  'sort'=>true
                 );                  );
   
   $template_keys = ezin_admin_get_template_keys($ezin_sys['tmpl']['articles']);
   if (count($template_keys) > 0) {
           $ezin_opts['fdd']['template_key'] = array(
                           'name'=>Platon::htmlspecialchars2('Template key'),
                           'name|LF'=>'Key',
                           'sort'=>true,
                           'select'=>'T',
                           'options'=>'ACPDV',
                           'values2'=> array(''=>' - default template - '),
                           'values' => $template_keys
                           );
   }
   
   $ezin_opts['fdd']['access_key'] = array(
                   'name'=>Platon::htmlspecialchars2('Access key'),
                   'name|LF'=>'Key',
                   'sort'=>true,
                   'select'=>'T',
                   'options'=>'ACPDV'.($ezin_admin_action == 'pages' ? 'LF' : '')
   
                   );
   
   $ezin_opts['fdd']['datetime'] = array(
                   'name'=>Platon::htmlspecialchars2('Date & Time'),
                   'select'=>'T',
                   'sort'=>true,
                   'required'=>true,
                   'mask'=>'%.10s',
                   'options'=>($ezin_admin_action == 'pages' ? 'ACPVDRH' : 'ACPVDLF'),
                   'default'=>($ezin_admin_action == 'pages' ? '0000-00-00' : date('Y-m-d H:i:s'))
                   );
   
   
 $ezin_opts['fdd']['bind_lang'] = array(  $ezin_opts['fdd']['bind_lang'] = array(
                 'name'=>Platon::htmlspecialchars2('Language bind'),                  'name'=>Platon::htmlspecialchars2('Language bind'),
                 'select'=>'D',                  'select'=>'D',
Line 155  $ezin_opts['fdd']['section_id'] = array(
Line 177  $ezin_opts['fdd']['section_id'] = array(
                                 'divs'    => array(' (', ') ',''))),                                  'divs'    => array(' (', ') ',''))),
                 );                  );
   
 $ezin_opts['fdd']['datetime'] = array(  
                 'name'=>Platon::htmlspecialchars2('Date & Time'),  
                 'select'=>'T',  
                 'sort'=>true,  
                 'required'=>true,  
                 'mask'=>'%.10s',  
                 'default'=>date('Y-m-d H:i:s')  
                 );  
   
 $ezin_opts['fdd']['atitle'] = array(  $ezin_opts['fdd']['atitle'] = array(
                 'name'=>Platon::htmlspecialchars2('Annotation title'),                  'name'=>Platon::htmlspecialchars2('Annotation title'),
                 'select'=>'T',                  'select'=>'T',
Line 244  if (! ezin_admin_check_list_privileges($
Line 257  if (! ezin_admin_check_list_privileges($
                 $content = ezin_admin_word_clean($content);                  $content = ezin_admin_word_clean($content);
                 $phpMyEdit->myQuery(sprintf('UPDATE %s SET bodytext = "%s" WHERE id = %d',                  $phpMyEdit->myQuery(sprintf('UPDATE %s SET bodytext = "%s" WHERE id = %d',
                         $ezin_opts['tb'], addslashes($content), $phpMyEdit->rec));                          $ezin_opts['tb'], addslashes($content), $phpMyEdit->rec));
                 $phpMyEdit->operation = $phpMyEdit->labels['Change'];          } elseif ($phpMyEdit->get_sys_cgi_var('switch')) {
                 $phpMyEdit->recreate_fdd();                  $datetime = $phpMyEdit->get_data_cgi_var('datetime');
                 $phpMyEdit->recreate_displayed();                  if (strncmp($datetime, '0000-00-00', 10)) {
                 $phpMyEdit->backward_compatibility();                          $phpMyEdit->myQuery(sprintf('UPDATE %s SET datetime = "0000-00-00"
                                                   WHERE id = %d AND UNIX_TIMESTAMP(datetime) != 0',
                                                   $ezin_opts['tb'], $phpMyEdit->rec));
                   } else {
                           $phpMyEdit->myQuery(sprintf('UPDATE %s SET datetime = SYSDATE()
                                                   WHERE id = %d AND UNIX_TIMESTAMP(datetime) = 0',
                                                   $ezin_opts['tb'], $phpMyEdit->rec));
                   }
         }          }
   
         $phpMyEdit->execute();          $phpMyEdit->execute();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top