function __construct() { $this->token = Shutter::get_encryption_key(); $this->curl = curl_init(); $is_ssl = isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] === 1 : $_SERVER['SERVER_PORT'] == 443; $this->protocol = $is_ssl ? 'https' : 'http'; }
exit('No direct script access allowed'); } if (isset($_SERVER['HTTP_HOST'])) { $__protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; $__full = $__protocol . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $__base = array_shift(explode('api.php', $__full)); $__rel = str_replace($__protocol . '://' . $_SERVER['HTTP_HOST'], '', $__full); $__obj = new stdClass(); $__obj->full = $__full; $__obj->base = $__base; $__obj->relative = $__rel; $config['koken_url_info'] = $__obj; } else { $config['koken_url_info'] = 'unknown'; } $key = Shutter::get_encryption_key(); if ($key) { $config['encryption_key'] = $key; } if (!defined('MAGICK_PATH')) { define('MAGICK_PATH_FINAL', 'convert'); } else { if (strpos(strtolower(MAGICK_PATH), 'c:\\') !== false) { define('MAGICK_PATH_FINAL', '"' . MAGICK_PATH . '"'); } else { define('MAGICK_PATH_FINAL', MAGICK_PATH); } } if (!defined('FFMPEG_PATH')) { define('FFMPEG_PATH_FINAL', 'ffmpeg'); } else {
protected final function request_read_token() { return Shutter::get_encryption_key(); }