Changeset 61 for trunk/includes


Ignore:
Timestamp:
Feb 4, 2009, 9:51:34 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Export překladů do českého WoW Addonu.
  • Upraveno: Export souborů se nyní ukládá samostatně do složek dle jmen uživatelů.
  • Přidáno: Zobrazování chyb dle konfigurace.
Location:
trunk/includes
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/config.sample.php

    r50 r61  
    1818        'AdminEmail' => 'admin@localhost',
    1919        'ShowSQLError' => false,
     20        'ShowPHPError' => false,
    2021  ),
    2122);
  • trunk/includes/global.php

    r60 r61  
    1313
    1414include('config.php');
     15include_once('error.php');
    1516include('databaseconection.php');
    1617include('global_function.php');
     
    149150
    150151if(!array_key_exists('UserID', $_SESSION)) $_SESSION['UserID'] = '';
     152if(!array_key_exists('User', $_SESSION)) $_SESSION['User'] = 'NotRegistred';
     153
    151154// Přihlášení
    152155if(array_key_exists('LoginUser', $_POST))
  • trunk/includes/global_function.php

    r59 r61  
    55define('LICENCE_MODERATOR', 1);
    66define('LICENCE_ADMIN', 2);
     7
     8function utf2ascii($text)
     9{
     10  $return = Str_Replace(
     11    Array("á","č","ď","é","ě","í","ľ","ň","ó","ř","š","ť","ú","ů","ý","ž","Á","Č","Ď","É","Ě","Í","Ľ","Ň","Ó","Ř","Š","Ť","Ú","Ů","Ý","Ž") ,
     12    Array("a","c","d","e","e","i","l","n","o","r","s","t","u","u","y","z","A","C","D","E","E","I","L","N","O","R","S","T","U","U","Y","Z") ,
     13    $text);
     14  //$return = Str_Replace(Array(" ", "_"), "-", $return); //nahradí mezery a podtržítka pomlčkami
     15  //$return = Str_Replace(Array("(",")",".","!",",","\"","'"), "", $return); //odstraní ().!,"'
     16  //$return = StrToLower($return); // velká písmena nahradí malými.
     17  return($return);
     18}
    719
    820function FormatOutput($s)
Note: See TracChangeset for help on using the changeset viewer.