| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/Config.tar |
Config.php 0000666 00000001670 15114367566 0006510 0 ustar 00 <?php
namespace YoastSEO_Vendor\WordProof\SDK\Config;
abstract class Config
{
/**
* Try to return config values using the dot syntax.
*
* @param string|null $key The key of the config using the dot syntax.
* @return array|mixed Returns the entire config array if not found, otherwise the value itself.
*/
public static function get($key = null)
{
if (!isset($key)) {
return static::values();
}
$keys = \explode('.', $key);
$value = static::values();
foreach ($keys as $key) {
if (isset($value[$key])) {
$value = $value[$key];
} else {
return \false;
}
}
return $value;
}
/**
* Should return an array with the config.
*
* @return array An array containing the config values.
*/
protected static function values()
{
return [];
}
}
RoutesConfig.php 0000666 00000002012 15114367566 0007701 0 ustar 00 <?php
namespace YoastSEO_Vendor\WordProof\SDK\Config;
class RoutesConfig extends \YoastSEO_Vendor\WordProof\SDK\Config\Config
{
/**
* Returns an array with the environment config.
*
* @return array
*/
protected static function values()
{
return ['hashInput' => ['endpoint' => '/posts/(?P<id>\\d+)/hashinput/(?P<hash>[a-fA-F0-9]{64})', 'method' => 'get'], 'authenticate' => ['endpoint' => '/oauth/authenticate', 'method' => 'post'], 'timestamp' => ['endpoint' => '/posts/(?P<id>\\d+)/timestamp', 'method' => 'post'], 'timestamp.transaction.latest' => ['endpoint' => '/posts/(?P<id>\\d+)/timestamp/transaction/latest', 'method' => 'get'], 'webhook' => ['endpoint' => '/webhook', 'method' => 'get'], 'settings' => ['endpoint' => '/settings', 'method' => 'get'], 'saveSettings' => ['endpoint' => '/settings', 'method' => 'POST'], 'authentication' => ['endpoint' => '/authentication', 'method' => 'post'], 'authentication.destroy' => ['endpoint' => '/oauth/destroy', 'method' => 'post']];
}
}
.htaccess 0000666 00000000424 15114367566 0006364 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>