HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/file-away/lib/cls/class.fileaway_tts.php
<?php

defined('fileaway') or die('Water, water everywhere, but not a drop to drink.');

if(!class_exists('fileaway_tts'))

{

	class fileaway_tts

	{

		public function __construct()

		{

			add_shortcode('fileaway_tutorials', array($this, 'sc'));

		}

		public function sc($attr)

		{

			$options = get_option('fileaway_options');

			$levels = array($options['modalaccess'], 'edit_pages', 'edit_posts');

			foreach($levels as $level) if(!current_user_can($level)) return;

			$fileaway = new fileaway;

			$atts = array(

				'tutorials' => 1,

				'type' => 'table',

				'filenamelabel' => 'Topic',

				'fadein' => 'opacity',

				'customdata' => 'Description,Length',

				'size' => 'no',

				'mod' => 'no',

				'flightbox' => 'multi',

				'boxtheme' => 'yang',

				'only' => 'fileaway-url-parser.csv',

				'theme' => 'silver-bullet',

				'heading' => 'File Away Tutorials',

				'hcolor' => 'black',

				'align' => 'none',

				'textaign' => 'left',

				'color' => 'blue',

				'iconcolor' => 'black'

			);

			if(isset($attr['showto'])) $atts['showto'] = $attr['showto'];

			if(isset($attr['hidefrom'])) $atts['hidefrom'] = $attr['hidefrom'];

			return $fileaway->sc($atts);	

		}

	}

}