Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Legacy/lib/ |
Upload File : |
<?php /** * This is a wrapper class to the LegacyImage class which provides all the necessary logic for retrieving attributes as needed. * * NOTE: it isn't possible yet (as of PHP 5.4) to use overloaded properties in any language constructs other than * isset(). To work around this with the wrapper class (which uses overloaded properties) we make a copy of any * attributes set to this object. */ #[AllowDynamicProperties] class nggImage { public $_ngiw; public $_propogate = true; public $thumbURL; function __construct( $image ) { $image->meta_data = \Imagely\NGG\Util\Serializable::unserialize( $image->meta_data ); $this->_ngiw = new \Imagely\NGG\DataTypes\LegacyImage( $image, null, true ); } public function __set( $name, $value ) { $this->$name = $value; if ($this->_propogate) { $this->_ngiw->__set( $name, $value ); } } public function __isset( $name ) { return $this->_ngiw->__isset( $name ); } public function __unset( $name ) { return $this->_ngiw->__unset( $name ); } public function __get( $name ) { $this->_propogate = false; $this->$name = $this->_ngiw->__get( $name ); $this->_propogate = true; return $this->$name; } function get_thumbcode( $galleryname = '' ) { return $this->_ngiw->get_thumbcode( $galleryname ); } function get_href_link() { return $this->_ngiw->get_href_link(); } function get_href_thumb_link() { return $this->_ngiw->get_href_thumb_link(); } function cached_singlepic_file( $width = '', $height = '', $mode = '' ) { return $this->_ngiw->cached_singlepic_file( $width, $height, $mode ); } function get_tags() { return $this->_ngiw->get_tags(); } function get_permalink() { return $this->_ngiw->get_permalink(); } }