Вы не зашли.
    
        
        
        
                W:\home\tt.php\www\trunk\includes\library\Smarty_Internal_TemplateCompilerBase.php у меня не может загрузиться.
Я сделал так:
- Папка с классами лежит тут: includes\library
- Папка со смарти: includes\library\Smarty
- Ленивец: includes\library\LazyLoad.class.php
Код:
| span style="color: #0000BB"><?php//Ленивецclass LazyLoad{    const    EXT = '.class.php';        private    $_status,    $_dir;        protected static    $_instance;        private function __clone ()    {}        private function __wakeup ()    {}        public static function singleton ()    {        if (null === self::$_instance) {                        self::$_instance = new self;        }                return self::$_instance;    }        protected function __construct ()    {        $this->_dir = dirname(__FILE__);    }        public function register ()    {        if (! $this->_status) {                        return $this->_status = spl_autoload_register(array($this, '_loader'));        }    }        public function unregister ()    {        if ($this->_status) {                        return ! $this->_status = ! spl_autoload_unregister(array($this, '_loader'));        }    }        private function _loader ($className)    {        require_once $this->_dir . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . self::EXT;    }} | 
 
        
        
                Я без замены '_' => '/' тоже пробовал. Не получается.
Добавлено спустя   5 минут  22 секунды: Почему именно я сказал, что не дружат - расширение мое:
        
        
                
     
        
        
        
                Жестко тупил [это мое обычное состояние], но потом, методом тыка, получилось.
Код:
| span style="color: #0000BB"><?php// common.phpLazyLoad::singleton()->register();// some code...$tpl = new TemplateMan(PATH_DESIGN . $design);// library/TemplateMan.class.phpLazyLoad::singleton()->unregister();//define('SMARTY_SPL_AUTOLOAD', 1);require_once 'Smarty' . DIRECTORY_SEPARATOR . 'Smarty.class.php';LazyLoad::singleton()->register();// Надо в переменной держать, оказывается пригодится может. Если в классе каком, так же через сингтон в переменную и вперед. :)$LazyLoad = LazyLoad::singleton();$LazyLoad->register(); | 
 
        
        
                        
                        #896.
            werwap
                        
                        Гость
                        2012.07.26 00:12
                                                                                            
                                            
                                                        
 
                привет. подскажи как в граббе определить адрес файла есла переадресация на файл? вот http://flash.mobik.ru/?module=download&category=20&id=67
        
        
                
    
 
        
        
                werwap написал:
привет. подскажи как в граббе определить адрес файла есла переадресация на файл? вот http://flash.mobik.ru/?module=download&category=20&id=67
http://flash.mobik.ru/
index.php?module=download&category=20&id=67
        
        
                
    
 
        
        
                        
                        #898.
            werwap
                        
                        Гость
                        2012.07.26 11:11
                                                                                            
                                            
                                                        
 
                tipsun, адрес файла Flash нужна
        
        
                
    
 
        
        
                werwap написал:
tipsun, адрес файла Flash нужна
Ну так сразу и надо писать, что конкретно нужно.
- - - -
Если у тебя есть адрес:
http://flash.mobik.ru/index.php?module=download&category=20&id=67
Меняешь на такой:
http://flash.mobik.ru/download.php?id=67
Ловищь переадресацию в заголовках:
Location: http://...
Имя файла передается через, когда переходишь по переадресации:
Content-Disposition    attachment; filename=1109072.swf
        
        
                
    
 
        
        
                        
                        #900.
            werwap
                        
                        Гость
                        2012.07.26 11:11
                                                                                            
                                            
                                                        
 
                подробнее код можеш написать?