Skip to content

Instantly share code, notes, and snippets.

View adeonir's full-sized avatar
💻
Working remotely

Adeonir Kohl adeonir

💻
Working remotely
View GitHub Profile
@adeonir
adeonir / countries.php
Created May 12, 2016 19:21 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
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)) {
<html>
<head>
<title>CakePHP Gerador de Hash</title>
</head>
<body>
<h1>Gerador de Hash Para CakePHP</h1>
<p>Recarregue a p&aacute;gina para gerar novos hashs!</p>
<?php
function geraSenha($tamanho = 15, $minusculas = true, $maiusculas = true, $numeros = true, $simbolos = true)
{