[UPDATE] Added index call checks where missing
This commit is contained in:
parent
24c73e9944
commit
78beb8b674
@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
// SHA/Scrypt check
|
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY')) die('Hacking attempt');
|
||||||
|
|
||||||
|
// SHA/Scrypt check
|
||||||
if (empty($config['algorithm']) || $config['algorithm'] == 'scrypt') {
|
if (empty($config['algorithm']) || $config['algorithm'] == 'scrypt') {
|
||||||
$config['target_bits'] = 16;
|
$config['target_bits'] = 16;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY')) die('Hacking attempt');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A wrapper class which provides compatibility between Memcached and Memcache
|
* A wrapper class which provides compatibility between Memcached and Memcache
|
||||||
* PHP uses the Memcached class on *nix environments, and the Memcache class
|
* PHP uses the Memcached class on *nix environments, and the Memcache class
|
||||||
@ -12,4 +15,4 @@ class Memcached
|
|||||||
{
|
{
|
||||||
return parent::set($key, $value, 0, $expiration);
|
return parent::set($key, $value, 0, $expiration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY')) die('Hacking attempt');
|
||||||
|
|
||||||
define('STATISTICS_ALL_USER_SHARES', 'STATISTICS_ALL_USER_SHARES');
|
define('STATISTICS_ALL_USER_SHARES', 'STATISTICS_ALL_USER_SHARES');
|
||||||
define('STATISTICS_ROUND_SHARES', 'STATISTICS_ROUND_SHARES');
|
define('STATISTICS_ROUND_SHARES', 'STATISTICS_ROUND_SHARES');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY')) die('Hacking attempt');
|
||||||
|
|
||||||
define('DB_VERSION', '0.0.2');
|
define('DB_VERSION', '0.0.2');
|
||||||
define('CONFIG_VERSION', '0.0.2');
|
define('CONFIG_VERSION', '0.0.2');
|
||||||
define('MPOS_VERSION', '0.0.1');
|
define('MPOS_VERSION', '0.0.1');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user