Extra varnostne posodobitve
This commit is contained in:
parent
8fb8711b04
commit
03ce2bf852
@ -24,13 +24,13 @@ if (!$config->enableBuilder) {
|
|||||||
die('This application is not enabled. See https://github.com/mrclay/minify/blob/master/docs/BuilderApp.wiki.md');
|
die('This application is not enabled. See https://github.com/mrclay/minify/blob/master/docs/BuilderApp.wiki.md');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once( dirname(__FILE__) .'/../../../../settings.php' );
|
require_once (dirname(__FILE__) .'/../../../../settings.php');
|
||||||
|
|
||||||
|
|
||||||
if ($minify_builder_password !== '') {
|
if ($minify_builder_password !== '') {
|
||||||
$auth = new Intervention\Httpauth\Httpauth(array(
|
$auth = new Intervention\Httpauth\Httpauth(array(
|
||||||
'username' => 'admin',
|
'username' => 'admin',
|
||||||
'password' => $config->builderPassword,
|
'password' => $minify_builder_passwordd,
|
||||||
'type' => 'digest',
|
'type' => 'digest',
|
||||||
'realm' => 'Minify Builder',
|
'realm' => 'Minify Builder',
|
||||||
));
|
));
|
||||||
|
@ -4,6 +4,7 @@ namespace Minify;
|
|||||||
|
|
||||||
use Minify_CacheInterface;
|
use Minify_CacheInterface;
|
||||||
|
|
||||||
|
|
||||||
class Config
|
class Config
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -21,11 +22,6 @@ class Config
|
|||||||
*/
|
*/
|
||||||
public $concatOnly = false;
|
public $concatOnly = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $builderPassword = 'admin';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool|object
|
* @var bool|object
|
||||||
*/
|
*/
|
||||||
|
@ -70,9 +70,7 @@ if ($handle = opendir($sync_server_path)) {
|
|||||||
|
|
||||||
if (count($struktura) == 0) {
|
if (count($struktura) == 0) {
|
||||||
|
|
||||||
$num = substr_count($raw, '"recnum"');
|
mysql_query ("UPDATE srv_fieldwork SET lastnum='" .intval(substr_count($raw, '"recnum"')) ."' WHERE id='" .intval($r[1]) ."'");
|
||||||
|
|
||||||
mysql_query ("UPDATE srv_fieldwork SET lastnum='$num' WHERE id='" .$r[1] ."'");
|
|
||||||
|
|
||||||
// $struktura['version'] = $kljuc['version'];
|
// $struktura['version'] = $kljuc['version'];
|
||||||
$struktura['version'] = time();
|
$struktura['version'] = time();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user