// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
// $avatarsStorage = new Primage_Proxy_Storage ( 'data/avatars' , 'jpg' , 90 ) ; // $avatarsProxyStorage = new Primage_Proxy_Storage ( 'public_html/img/avatars' , 'jpg' , 80 ) ; // URL $router = new Primage_Proxy_Router ( false ) ; // $avatarsBig = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsBig -> addAction ( new Primage_Proxy_Action_Resize ( 200 , 300 ) ) ; $router -> addController ( 'avatars/{id}_big.jpg' , $avatarsBig ) ; // $avatarsSmall = new Primage_Proxy_Controller_CopyById ( $avatarsStorage , $avatarsProxyStorage ) ; $avatarsSmall -> addAction ( new Primage_Proxy_Action_Resize ( 50 , 50 ) ) ; $router -> addController ( 'avatars/{id}_small.jpg' , $avatarsSmall ) ; // ( .. ) $step = 50 ; $maxWidth = 1000 ; $maxHeight = 1000 ; $avatarsDynamic = new Primage_Proxy_Controller_CopyWithResize ( $avatarsStorage , $avatarsProxyStorage , $maxWidth , $maxHeight , $step ) ; $router -> addController ( 'avatars/{id}_{width}x{height}.jpg' , $avatarsDynamic ) ; // $controller = $router -> getController ( $_SERVER [ 'REQUEST_URI' ] , & $params ) ; if ( $controller ) { try { $controller -> dispatch ( $params ) ; header ( 'Location: ' . $_SERVER [ 'REQUEST_URI' ] ) ; exit ; } catch ( Primage_Proxy_Storage_SourceNotFound $e ) { } catch ( Primage_Proxy_Controller_RequestException $e ) { } } header ( 'HTTP/1.0 404 Not Found' ) ;
Source: https://habr.com/ru/post/104094/
All Articles