%PDF- %PDF-
| Direktori : /usr/share/l.v.e-manager/interworx/lvemanager/Ctrl/Nodeworx/ |
| Current File : //usr/share/l.v.e-manager/interworx/lvemanager/Ctrl/Nodeworx/LveLogo.php |
<?php
/**
* Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
*
* Licensed under CLOUD LINUX LICENSE AGREEMENT
* http://cloudlinux.com/docs/LICENSE.TXT
*/
class Ctrl_Nodeworx_LveLogo extends Ctrl_Nodeworx_Plugin
{
protected function _init()
{
if( IW::NW()->isReseller() )
{
throw new IWorx_Exception_ActionBlocked( '##LG_ACTION_BLOCKED##' );
}
}
public function indexAction()
{
header("Content-Type: image/png");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize("/usr/local/interworx/plugins/lvemanager/Ctrl/Nodeworx/logoCloudLinux.png"));
if ($stream = fopen('/usr/local/interworx/plugins/lvemanager/Ctrl/Nodeworx/logoCloudLinux.png', 'rb'))
{
while(!feof($stream) && connection_status() == 0)
{
set_time_limit(0);
print(fread($stream,1024*8));
flush();
}
fclose($stream);
}
exit();
}
}
?>