���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/drive.rickard.co/customizablesMYs/plugins/plain_text_viewer/app.php
���ѧ٧ѧ�
<?php class custom_plain_text_viewer extends \FileRun\Files\Plugin { public $weblinksCompatible = true; static $localeSection = 'Custom Actions: Text Viewer'; static $publicMethods = ['thumb']; function init() { $this->JSconfig = [ "title" => self::t("Text Viewer"), 'iconCls' => 'fa fa-fw fa-file-text-o', 'useWith' => ['txt', 'noext'], "popup" => true, "requiredUserPerms" => ["preview"], "requires" => ["preview"] ]; } function run() { global $settings; if ($this->isLimitedPreview()) { $this->centeredThumb(); return; } $this->data['contents'] = $this->readFile(['errorHandling' => 'html']); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><?php echo \S::safeHTML(\S::forHTML($this->data['fileName']));?></title> <link href="<?php echo $this->url;?>/style<?php if ($settings->ui_theme == 'dark') {echo '_dark';}?>.css" rel="stylesheet" /> </head> <body><?php echo $this->data['contents'];?></body> </html> <?php } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.19 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�