This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
apache: | |
build: ./apache/ | |
ports: | |
- "8080:8080" | |
volumes: | |
- /your/path:/var/www/app/ | |
nginx: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller\Component; | |
use Cake\Controller\Component; | |
use Cake\Auth\DefaultPasswordHasher; | |
class PasswordComponent extends Component { | |
public function generate() { | |
return $this->create_password('##CcC#C'); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller\Component; | |
use Cake\Controller\Component; | |
use Cake\Utility\Security; | |
class JTokensComponent extends Component { | |
public $secretKey; | |
public $algorythm = "HS256"; | |
public $type = "JWT"; | |
public $payload = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getLocationGroup() { | |
// из конфига config.php | |
global $defaultLocationsGroup; | |
$obCache = new CPHPCache; | |
if($obCache->InitCache(7200, "cities", "/klamas/all")) { | |
$locationsCache = $obCache->getVars(); | |
$locations = $locationsCache['cities']; |
NewerOlder