This file contains hidden or 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
[ | |
"United States" => "us", | |
"Afghanistan" => "af", | |
"Albania" => "al", | |
"Algeria" => "dz", | |
"American Samoa" => "as", | |
"Andorra" => "ad", | |
"Angola" => "ad", | |
"Anguilla" => "ai", | |
"Antarctica" => "aq", |
This file contains hidden or 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
public function add() | |
{ | |
$image = $this->Images->newEntity(); | |
if ($this->request->is('post')) { | |
$image = $this->Images->patchEntity($image, $this->request->data); | |
$album_id = $image['album_id']; | |
foreach ($image['image_file'] as $file) { | |
$image['image'] = $this->Upload->send($file, $album_id); | |
if ($this->Images->save($image)) { |
This file contains hidden or 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
<html> | |
<head> | |
<title>CakePHP Gerador de Hash</title> | |
</head> | |
<body> | |
<h1>Gerador de Hash Para CakePHP</h1> | |
<p>Recarregue a página para gerar novos hashs!</p> | |
<?php | |
function geraSenha($tamanho = 15, $minusculas = true, $maiusculas = true, $numeros = true, $simbolos = true) | |
{ |
NewerOlder