[UPDATE] Added index call checks where missing

This commit is contained in:
Sebastian Grewe 2014-01-14 11:05:41 +01:00
parent 24c73e9944
commit 78beb8b674
4 changed files with 14 additions and 2 deletions

View File

@ -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 {

View File

@ -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);
} }
} }

View File

@ -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');
?> ?>

View File

@ -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');