Example #1
0
<?php

/*
  +------------------------------------------------------------------------+
  | Phalcon Framework                                                      |
  +------------------------------------------------------------------------+
  | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com)       |
  +------------------------------------------------------------------------+
  | This source file is subject to the New BSD License that is bundled     |
  | with this package in the file docs/LICENSE.txt.                        |
  |                                                                        |
  | If you did not receive a copy of the license and are unable to         |
  | obtain it through the world-wide-web, please send an email             |
  | to license@phalconphp.com so we can send you a copy immediately.       |
  +------------------------------------------------------------------------+
  | Authors: Andres Gutierrez <*****@*****.**>                      |
  |          Eduar Carvajal <*****@*****.**>                         |
  +------------------------------------------------------------------------+
*/
if (PHP_OS == "WINNT") {
    $path = str_replace("\\", "/", getcwd()) . "/..";
} else {
    $path = getcwd() . '/..';
}
require 'Phalcon/Web/Tools.php';
Phalcon\Web\Tools::main(__DIR__);
Example #2
0
<?php

/*
  +------------------------------------------------------------------------+
  | Phalcon Framework                                                      |
  +------------------------------------------------------------------------+
  | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com)       |
  +------------------------------------------------------------------------+
  | This source file is subject to the New BSD License that is bundled     |
  | with this package in the file docs/LICENSE.txt.                        |
  |                                                                        |
  | If you did not receive a copy of the license and are unable to         |
  | obtain it through the world-wide-web, please send an email             |
  | to license@phalconphp.com so we can send you a copy immediately.       |
  +------------------------------------------------------------------------+
  | Authors: Andres Gutierrez <*****@*****.**>                      |
  |          Eduar Carvajal <*****@*****.**>                         |
  +------------------------------------------------------------------------+
*/
require 'webtools.config.php';
if (PHP_OS == "WINNT") {
    $path = str_replace("\\", "/", getcwd()) . "/..";
} else {
    $path = getcwd() . '/..';
}
require PTOOLSPATH . '/scripts/Phalcon/Web/Tools.php';
Phalcon\Web\Tools::main(PTOOLSPATH);
Example #3
0
<?php

/*
  +------------------------------------------------------------------------+
  | Phalcon Framework                                                      |
  +------------------------------------------------------------------------+
  | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com)       |
  +------------------------------------------------------------------------+
  | This source file is subject to the New BSD License that is bundled     |
  | with this package in the file docs/LICENSE.txt.                        |
  |                                                                        |
  | If you did not receive a copy of the license and are unable to         |
  | obtain it through the world-wide-web, please send an email             |
  | to license@phalconphp.com so we can send you a copy immediately.       |
  +------------------------------------------------------------------------+
  | Authors: Andres Gutierrez <*****@*****.**>                      |
  |          Eduar Carvajal <*****@*****.**>                         |
  +------------------------------------------------------------------------+
*/
require 'webtools.config.php';
require PTOOLSPATH . '/scripts/Phalcon/Web/Tools.php';
Phalcon\Web\Tools::main(PTOOLSPATH, ADMINIP);