在安装Bitexchange脚本时在浏览器中获取PHP代码

时间:2018-06-20 08:01:09

标签: php

我试图在Localhost上安装Bitexhchange脚本,成功完成所有更改后,我在浏览器中获取了PHP代码

enter image description here

bitexchnage support page

<?
include 'lib/common.php';
ini_set("memory_limit","200M");
$CFG->print = $_REQUEST['print'];
$CFG->url = ($_REQUEST['current_url'] != 'index.php') ? ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['current_url']) : '';
$CFG->action = ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['action']);
$CFG->bypass = ($_REQUEST['bypass'] || $CFG->print);
$CFG->is_tab = (!$CFG->url) ? 1 : $_REQUEST['is_tab'];
$CFG->id = ereg_replace("[^0-9]", "",$_REQUEST['id']);
$CFG->target_elem = ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['target_elem']);
$CFG->in_popup = ($CFG->target_elem == 'edit_box' || $CFG->target_elem == 'message_box' || $CFG->target_elem == 'attributes box');
$CFG->inset_id = false;
$_SESSION['last_query'] = $_SESSION['this_query'];
$_SESSION['this_query'] = 'index.php?'.http_build_query((is_array($_POST)) ? $_POST : $_GET);

date_default_timezone_set($CFG->default_timezone);
String::magicQuotesOff();

1 个答案:

答案 0 :(得分:3)

您的php可能未配置为接受简短的打开标记(<?

您应该将其启用到您的php.ini文件中(请参阅How to enable PHP short tags?)或使用“长” php打开标记:<?php