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 | |
abstract class AbstractController | |
{ | |
public function dispatch($action) | |
{ | |
$actionName = $action . "Action"; | |
if (!method_exists($this, $actionName)) | |
{ |
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 EveryPage\Controller\Plugin; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use Zend\ServiceManager\ServiceLocatorAwareInterface; | |
use Zend\Mvc\Controller\Plugin\AbstractPlugin; | |
class EveryPage extends AbstractPlugin implements ServiceLocatorAwareInterface | |
{ |
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 | |
require 'morselib.php'; | |
$morse = new morselib(); | |
eval($morse->decode(file_get_contents("site.morse"))); |
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 | |
$bind = array( | |
'key' => $key, | |
'value' => $value, | |
); | |
$where['key = ?'] = $key; | |
$db = Zend_Db_Table::getDefaultAdapter() | |
$db->update('configuration', $bind, $where); |
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 | |
class AdminController extends Zend_Controller_Action | |
{ | |
public function userAction() | |
{ | |
$this->view->headLink()->appendStylesheet("/css/template/form.css"); | |
$this->view->headLink()->appendStylesheet("/css/pages/project_servers.css"); | |
$users = new GD_Model_UsersMapper(); | |
$user = new GD_Model_User(); |
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
http://godeploy.localhost/project/https-git-repo-test/deploy/run/79 | |
GET /project/https-git-repo-test/deploy/run/79 HTTP/1.1 | |
Host: godeploy.localhost | |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.20) Gecko/20110805 Ubuntu/10.04 (lucid) Firefox/3.6.20 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Accept-Language: en-gb,en;q=0.5 | |
Accept-Encoding: gzip,deflate | |
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | |
Keep-Alive: 115 |
NewerOlder