File: /www/wwwroot/www.tyfjig.com/ff/link.php
<?php
if($_POST[submit1]){
$tuiguan = trim($_POST["tuiguan"]);
if($tuiguan==""){
$tuiguan="空值";
}
$content = file_get_contents("linkt.txt");
file_put_contents("linkt.txt",$tuiguan);
// echo "<script language=javascript>alert('留言成功!');history.go(-1);</script>";
echo "<script language=javascript>alert('添加推广页成功,记得检查推广页哦!');window.location='ht.php';</script>";
}
if($_POST[submit2]){
$shenghe = trim($_POST["shenghe"]);
if($shenghe==""){
$shenghe="空值";
}
$content = file_get_contents("links.txt");
file_put_contents("links.txt",$shenghe);
// echo "<script language=javascript>alert('留言成功!');history.go(-1);</script>";
echo "<script language=javascript>alert('添加审核页成功,记得检查审核页哦!');window.location='ht.php';</script>";
}
if($_POST[submit4]){
$tz = trim($_POST["tz"]);
// echo $daima;
if($tz=="" ){
$tz="空值";
}
$xiaoxi = $tz == 1 ? "开启" : "取消";
$xiaoxi1 = $tz == 1 ? ",记得检查跳转页哦!" : "";
// $daima1 = str_replace('<script','@@',$daima);
$content = file_get_contents("tz.txt");
file_put_contents("tz.txt",$tz);
// echo "<script language=javascript>alert('留言成功!');history.go(-1);</script>";
echo "<script language=javascript>alert('$xiaoxi 跳转页成功 $xiaoxi1');window.location='ht.php';</script>";
}