<?php
/*
 * 2007-2016 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * 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@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author PrestaShop SA <contact@prestashop.com>
 *  @copyright  2007-2016 PrestaShop SA
 *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */
// if (in_array($_SERVER['REMOTE_ADDR'], array('213.165.69.65'))) {
//             echo 'test';
//             die;
//         }

    //DO STUFF, EXAMPLE WITH LOADING index.php ON PRESTASHOP



        // if (
        //     (isset($_SERVER['HTTP_USER_AGENT']) && (
        //         $_SERVER['HTTP_USER_AGENT'] == 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Claude-User/1.0; +Claude-User@anthropic.com)'
        //         || strpos($_SERVER['HTTP_USER_AGENT'], 'Claude') !== false 
        //     ))
        //  ) {
        //     echo '<pre>';
        //     var_dump(
        //         debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)
        //     );
        //     die;
        // }

    // if (isset($_SERVER['HTTP_USER_AGENT'])
    //     && $_SERVER['HTTP_USER_AGENT'] == 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Claude-User/1.0; +Claude-User@anthropic.com)'
    //     ) {

    //     echo 'test2';
    //     die;
    // }

    // if (
    //     isset($_GET['test_claude'])
    //     // || in_array($_SERVER['REMOTE_ADDR'], array('213.165.69.65', '83.138.43.142', '83.138.44.3', '185.14.57.62'))
    //     ) {
            
         
    //         file_put_contents('test_claude.txt', $_SERVER['REMOTE_ADDR'] . PHP_EOL, FILE_APPEND);
    //         // $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Claude-User/1.0; +Claude-User@anthropic.com)';

    // }

    require(dirname(__FILE__) . '/config/config.inc.php');
    Dispatcher::getInstance()->dispatch();

