Skip to content
Browse files

ads

  • Loading branch information...
1 parent 9d90e47 commit 5a9b50d0e014d38475b4907058355971532530ee @elihayun1 elihayun1 committed Dec 5, 2011
Showing with 15 additions and 27 deletions.
  1. +0 −11 application/controllers/AdsController.php
  2. +15 −16 index.php
View
11 application/controllers/AdsController.php
@@ -40,14 +40,3 @@ public function editAction()
}
-
-
-
-
-
-
-
-
-
-
-
View
31 index.php
@@ -5,21 +5,19 @@
// Define path to application directory
defined('APPLICATION_PATH')
- || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
+|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
// Define application environment
defined('APPLICATION_ENV')
- || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));
+|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
- realpath(APPLICATION_PATH . '/library'),
- realpath(APPLICATION_PATH . '/../library'),
- realpath(APPLICATION_PATH . '/../ZF/library'),
- realpath(APPLICATION_PATH . '/../../ZF/library'),
- realpath(APPLICATION_PATH . '/../../../ZF/library'),
- get_include_path(),
-)));
+ realpath(APPLICATION_PATH . '/library'),
+ realpath(APPLICATION_PATH . '/../ZF/library'),
+ realpath(APPLICATION_PATH . '/../../ZF/library'),
+ get_include_path(),
+ )));
/** Zend_Application */
require_once 'Zend/Application.php';
@@ -28,17 +26,18 @@
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
-);
+ );
$_ENV['TMP'] = $_SERVER['DOCUMENT_ROOT'] . '/tmp';
+if (isset($_REQUEST['params'])) {
+ $file = $_REQUEST['params'] . '.php';
+ include_once $file;
+}
+
Zend_Registry::set('site_id', 1);
Zend_Registry::set('bld_id', 1);
-if (isset($_REQUEST['params'])) {
- $file = $_REQUEST['params'] . '.php';
- include_once $file;
-}
-
$application->bootstrap()
- ->run();
+ ->run();
+

0 comments on commit 5a9b50d

Please sign in to comment.
Something went wrong with that request. Please try again.