Exemplo n.º 1
0
 public function preExecute()
 {
     $this->conn = Doctrine_Manager::getInstance()->connection();
     if (isset($_GET['alert001'])) {
         CustomHangout::alert001();
         die;
     }
     if (isset($_SESSION['username'])) {
         if (isset($_GET['viewposting']) && !empty($_GET['viewposting'])) {
             $this->redirect("/index.php/postings/post?id={$_GET['viewposting']}");
         } else {
             $this->redirect("http://hangout.com/home/index");
         }
     }
 }
Exemplo n.º 2
0
<?php

require_once 'C:/wamp/www/hangout2/config/ProjectConfiguration.class.php';
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
sfContext::createInstance($configuration)->dispatch();
CustomHangout::alert001();