<?php/*** Created by PhpStorm.* User: 刘海明(GadflyBSD@gmail.com)* Date: 2014年12月29日* Time: 14:15*/function groupsConfig($group){$protocol = strpos(strtolower($_SERVER['server_protocol']),'https') === false ? 'http' : 'https';$app_url = $protocol.'://'.$_SERVER['SERVER_NAME'].(($_SERVER['SERVER_PORT']==80)?'':':'.$_SERVER['SERVER_PORT']);$modulePath = '//Public/JavaScript/';$customPath = '//Public/Custom/';$ch = curl_init($app_url.'/custom/'.$group.'/Index/getScriptConf');curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_TIMEOUT, 5);$loadFile = json_decode(curl_exec($ch), true);curl_close($ch);foreach($loadFile AS $key => $val){$file = array();foreach($val AS $v){$param = explode('/', $v);if($param[0] == 'Module')$file[] = $modulePath.$v;else$file[] = $customPath.$v;}$return[$key] = $file;}return $return;}$protocol = strpos(strtolower($_SERVER['server_protocol']),'https') === false ? 'http' : 'https';$app_url = $protocol.'://'.$_SERVER['SERVER_NAME'].(($_SERVER['SERVER_PORT']==80)?'':':'.$_SERVER['SERVER_PORT']);echo $app_url.'/custom/'.$_GET['group'].'/Index/getScriptConf';//print_r(groupsConfig($_GET['group']));
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。