Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024

Diff for Metafox/rewrite.php between version 1.2 and 1.3

version 1.2, 2012/05/17 08:57:16 version 1.3, 2012/05/23 17:50:32
Line 196  if (strlen($link) > 0
Line 196  if (strlen($link) > 0
                         && strlen($args[0]) > 0)                          && strlen($args[0]) > 0)
                 {                  {
                         require_once 'cfgldr.inc.php';                          require_once 'cfgldr.inc.php';
                         $ezin_cgi['query_string'][] = $args[0];                          $ar = ezin_validate_IDs(array('article_id' => $args[0]));
                         $ezin_cgi['input'] = 'section';                          if (intval($ar['article_id']) > 0) {
                                   $ezin_cgi['query_string'] = $args;
                                   $ezin_cgi['input'] = 'article';
                           } else {
                                   $ezin_cgi['query_string'] = $args;
                                   $ezin_cgi['input'] = 'section';
                           }
                         require_once 'index.php';                          require_once 'index.php';
                 }                  }
   
Line 209  if (strlen($link) > 0
Line 215  if (strlen($link) > 0
   
                         $showed = false;                          $showed = false;
                         if (ezin_get_rewrite_key($args[0]) == 'author') {                          if (ezin_get_rewrite_key($args[0]) == 'author') {
                                 $ezin_cgi['query_string'][] = $args[1];                                  array_shift($args);
                                   $ezin_cgi['query_string'] = $args;
                                 $ezin_cgi['input'] = 'author';                                  $ezin_cgi['input'] = 'author';
                                 $showed = true;                                  $showed = true;
                         }                          }
                         if (ezin_get_rewrite_key($args[0]) == 'print') {                          if (ezin_get_rewrite_key($args[0]) == 'print') {
                                 $ezin_cgi['query_string'][] = $args[1];                                  array_shift($args);
                                   $ezin_cgi['query_string'] = $args;
                                 $ezin_cgi['input'] = 'print';                                  $ezin_cgi['input'] = 'print';
                                 $showed = true;                                  $showed = true;
                         }                          }
                         if (!$showed) {                          if (!$showed) {
                                 $ezin_cgi['query_string'][] = $args[1];                                  array_shift($args);
                                   $ezin_cgi['query_string'] = $args;
                                 $ezin_cgi['input'] = 'article';                                  $ezin_cgi['input'] = 'article';
                         }                          }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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