<?php
class Upload
{
public $name = 'аплоад';
}
$upload = new Upload();
$rus=array('А','Б','В','Г','Д','Е','Ё','Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У','Ф','Х','Ц','Ч','Ш','Щ','Ъ','Ы','Ь','Э','Ю','Я','а','б','в','г','д','е','ё','ж','з','и','й','к','л','м','н','о','п','р','с','т','у','ф','х','ц','ч','ш','щ','ъ','ы','ь','э','ю','я',' '); $lat=array('a','b','v','g','d','e','e','gh','z','i','y','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sch','y','y','y','e','yu','ya','a','b','v','g','d','e','e','gh','z','i','y','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sch','y','y','y','e','yu','ya','-');
$upload->name = str_replace($rus, $lat, $upload->name);
PD9waHAKCmNsYXNzIFVwbG9hZAp7CglwdWJsaWMgJG5hbWUgPSAn0LDQv9C70L7QsNC0JzsKfQoKJHVwbG9hZCA9IG5ldyBVcGxvYWQoKTsKCiRydXM9YXJyYXkoJ9CQJywn0JEnLCfQkicsJ9CTJywn0JQnLCfQlScsJ9CBJywn0JYnLCfQlycsJ9CYJywn0JknLCfQmicsJ9CbJywn0JwnLCfQnScsJ9CeJywn0J8nLCfQoCcsJ9ChJywn0KInLCfQoycsJ9CkJywn0KUnLCfQpicsJ9CnJywn0KgnLCfQqScsJ9CqJywn0KsnLCfQrCcsJ9CtJywn0K4nLCfQrycsJ9CwJywn0LEnLCfQsicsJ9CzJywn0LQnLCfQtScsJ9GRJywn0LYnLCfQtycsJ9C4Jywn0LknLCfQuicsJ9C7Jywn0LwnLCfQvScsJ9C+Jywn0L8nLCfRgCcsJ9GBJywn0YInLCfRgycsJ9GEJywn0YUnLCfRhicsJ9GHJywn0YgnLCfRiScsJ9GKJywn0YsnLCfRjCcsJ9GNJywn0Y4nLCfRjycsJyAnKTsKJGxhdD1hcnJheSgnYScsJ2InLCd2JywnZycsJ2QnLCdlJywnZScsJ2doJywneicsJ2knLCd5JywnaycsJ2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