-
Framework
-
Router
- mu - A tweet-sized PHP micro-router.
<?php | |
// Prevent this script to be called via HTTP | |
if (isset($_SERVER['REQUEST_METHOD'])) | |
{ | |
die('Permission denied.'); | |
} | |
// Avoid any time limit | |
set_time_limit(0); |
<?php | |
// Prevent this script to be called via HTTP | |
if (isset($_SERVER['REQUEST_METHOD'])) | |
{ | |
die('Permission denied.'); | |
} | |
// Avoid any time limit | |
set_time_limit(0); |
From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Julian=20Nu=C3=9F?= <[email protected]> | |
Date: Tue, 23 Sep 2014 21:07:29 +0200 | |
Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6 | |
--- | |
lib/Zend/Locale/Format.php | 22 +++++++++++----------- | |
lib/Zend/Service/Audioscrobbler.php | 6 +++--- | |
lib/Zend/Service/Technorati.php | 6 +++--- | |
lib/Zend/Validate/Hostname.php | 4 ++-- |
<?php | |
// Version 1 | |
// Minified | |
// class Dispatch{function add($e,$l){$this->l[$e][]=$l;}function trigger($e,$d){foreach ($this->l[$e] as $l)call_user_func_array($l, $d);}} | |
class Dispatch{ | |
function add($e, $l) { | |
$this->l[$e][] = $l; |
<?php // php -dallow_url_include=1 c.php | |
// Compressed 122 bytes | |
// class C extends ArrayObject { function __get($i) { $s = $this[$i]; $s instanceof Closure && $s = $s($this); return $s; } } | |
class C extends ArrayObject { | |
function __get($i) { | |
$s = $this[$i]; | |
$s instanceof Closure && $s = $s($this); | |
return $s; |
So we all hate reading docs. Here is the quick setup for installing Magento2. If you want the long route - http://devdocs.magento.com/ | |
I'm assuming you have composer, PHP 5.4+ and MySQL5.6+. If you have MAMP installed time to go sort that as it wont work (MAMP is on MySQL5.5.x). | |
1. Install Composer - curl -sS https://getcomposer.org/installer | php | |
2. mv composer.phar /usr/local/bin/composer (might need to sudo) | |
3. Goto base httpdocs directory | |
4. git clone [email protected]:magento/magento2.git | |
5. Set permissions (like you do in Magento 1.x) | |
6. cd magento2 |
Some notes from the MageStackDay chat:
This is a little idea for a module maybe for a hackathon or something. Magento includes passwords in plain text in registration emails by default. In some cases you can just suppress the password, but in other cases you can't - for example if you have customer service reps creating accounts over the phone that need to generate password and send them to customers.
So - how about integrating with readthenburn.com to send email passwords, or perhaps generating temporary password that expire after a day or two, requiring them to use the forgot password if they didn't login by that time.
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |