Changeset 364


Ignore:
Timestamp:
Mar 8, 2010, 5:07:33 PM (14 years ago)
Author:
maron
Message:
  • Opraveno: Exportování lua souborů. * Opraveno: Zobrazování hlavní stránky AoWoW.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/aowow/index.php

    r170 r364  
    5454        'path' => '[]'
    5555);
     56
    5657
    5758// В зависимости от раздела, выбираем что открывать:
     
    131132                break;
    132133}
    133 
     134die('');
    134135?>
  • trunk/aowow/main.php

    r170 r364  
    55        if($rows)
    66                $smarty->assign('news', $rows);
    7 
    87        global $page;
    98        $smarty->assign('page', $page);
    109        $smarty->display('main.tpl');
     10       
    1111?>
  • trunk/export/export.php

    r363 r364  
    306306            $DbRow = $DbResult2->fetch_assoc();
    307307            $Value['Text'] = addslashes($DbRow['Text']);
    308             $Value['Comment'] = addslashes($DbRow['Comment']);
     308            // Escape new line control characters
     309            $Value['Text'] = str_replace("\n", '\n', $Value['Text']);
     310            $Value['Text'] = str_replace("\r", '', $Value['Text']);
     311            $Value['Comment'] = $DbRow['Comment'];
     312            // Only one line comments allowed
     313            $Value['Comment'] = str_replace("\n", ' ', $Value['Comment']);
     314            $Value['Comment'] = str_replace("\r", '', $Value['Comment']);
    309315            //echo('.');
    310316          }
     
    313319          $NewLine .= "\n";
    314320          $File2->WriteLine($NewLine);
    315         } else $File2->WriteLine($Line."\n");
     321        } else $File2->WriteLine($Line."");
    316322      }
    317323      echo('Hotovo <br/>');
Note: See TracChangeset for help on using the changeset viewer.