function pl_php($file) { platform_launch_php($file); }
<?php /** * System * Test case: Determine the optimal approach to implementing system behaviours * * @version $Id: index.php 40 2011-02-09 14:10:00Z biyi $ * @package Platform * @category Tests * @author The Platorm Authors * @link mailto:platform@entilda.com * @copyright Copyright (C) 2011 The Platorm Authors. All rights reserved. * @license GNU/GPL, see LICENSE.php * Platform is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ platform_launch_initialize(); platform_launch_php('detect'); //platform_launch_php('info'); //platform_launch_php('load');
/** * platform_launch_ip_authorization_checks: used for IP authorizations * @param void * * @return void */ function platform_launch_ip_authorization_checks() { platform_launch_php('global'); $ip = network_get_real_ip(); $browser = detect_browser(); switch ($ip) { // allowed ip addresses // from localhost case '127.0.0.1': case '127.0.1.1': // from starbright //case '10.10.50.121': // from starbright //case '10.10.50.121': case '10.10.50.192': case '10.10.50.193': // from ehonet // from ehonet case '192.168.43.1': case '192.168.43.2': case '192.168.43.42': case '192.168.43.65': case '192.168.43.174': // from ehonet-wifi // from ehonet-wifi case '10.10.2.200': case '10.10.2.210': case '10.10.2.220': case '10.10.2.222': case '10.10.2.225': case '10.10.2.230': case '10.10.2.240': //redirect_to('http://'.$_SERVER['HTTP_HOST'].'/platform/'); break; default: redirect_to('http://www.entilda.com?api=' . base64_encode(base64_encode(base64_encode(time()))) . '&encdata=true&tracking=enabled&cryptocheck=' . base64_encode(base64_encode(base64_encode($ip))) . '&detected=' . $ip . '&client=' . $browser); break; } }
/** * launch: used to attach/include a php file * @param string $file The file to launch and load * * @return void */ public function launch_php($file) { platform_launch_php($file); }