function acclick()
{
    global $Pre;
    $conn = new mysql();
    $args = insql($_POST['args']);
    $ac = 2;
    $screenw = substr(insql($_POST['screenw']), 0, 6);
    $screenh = substr(insql($_POST['screenh']), 0, 6);
    $htmlw = substr(insql($_POST['htmlw']), 0, 6);
    $htmlh = substr(insql($_POST['htmlh']), 0, 6);
    $htmlurl = substr(insql($_POST['htmlurl']), 0, 255);
    $time = gnt();
    $gethost = substr(insql2(gethost()), 0, 20);
    $getlang = substr(insql2(getlang()), 0, 12);
    $getip = substr(insql2(getip()), 0, 15);
    $getport = substr(insql2(getport()), 0, 5);
    $getos = substr(insql2(getos()), 0, 20);
    $getb = getb();
    $getbn = substr(insql2($getb[0]), 0, 20);
    $bversion = substr(insql2($getb[1]), 0, 12);
    $agent = substr(insql2($_SERVER['HTTP_USER_AGENT']), 0, 255);
    $referer = substr(insql2($_POST['referrer']), 0, 255);
    $piece = explode(' ', $args);
    $piece[0] = substr($piece[0], -14, 14);
    $piece[1] = substr($piece[1], -14, 14);
    $piece[2] = substr($piece[2], 0, 6);
    $piece[3] = substr($piece[3], 0, 6);
    $piece[4] = substr($piece[4], 0, 6);
    $piece[5] = substr($piece[5], 0, 6);
    $piece[6] = substr($piece[6], 0, 3);
    $piece[7] = substr($piece[7], 0, 4);
    $piece[8] = substr($piece[8], 0, 5);
    $piece[9] = substr($piece[9], 0, 2);
    $piece[10] = substr($piece[10], 0, 3);
    $piece[11] = substr($piece[11], 0, 4);
    $piece[12] = substr($piece[12], 0, 5);
    $piece[13] = substr($piece[13], 0, 3);
    $piece[14] = substr($piece[14], 0, 4);
    $piece[15] = substr($piece[15], 0, 1);
    $sql = "INSERT INTO {$Pre}niux_ams_counter (ac,screenw,screenh,bodyw,bodyh,gid,gwid,gwx,gwy,gww,gwh,gshow,gshow1,gshow2,gclick,gclick1,ashow,ashow1,aclick,aclick1,atyh,time,ip,port,os,lang,browse,version,host,url,referer,agent) VALUES ('{$ac}','{$screenw}','{$screenh}','{$htmlw}','{$htmlh}','{$piece['0']}','{$piece['1']}','{$piece['2']}','{$piece['3']}','{$piece['4']}','{$piece['5']}','{$piece['6']}','{$piece['7']}','{$piece['8']}','{$piece['9']}','{$piece['10']}','{$piece['11']}','{$piece['12']}','{$piece['13']}','{$piece['14']}','{$piece['15']}','{$time}','{$getip}','{$getport}','{$getos}','{$getlang}','{$getbn}','{$bversion}','{$gethost}','{$htmlurl}','{$referer}','{$agent}')";
    $conn->uidRst($sql);
}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="left">NiuXams版本:</td>
    <td><?php 
echo NIUXAMS_VER;
?>
&nbsp;</td>
  </tr>
</table>
</p>
<p class="cp">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="left">服务器php时钟:</td>
    <td><?php 
echo gnt();
?>
&nbsp;</td>
  </tr>
</table>
</p>
<p class="cp">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="left">上传文件最大限制:</td>
    <td><?php 
echo get_cfg_var("upload_max_filesize");
?>
&nbsp;</td>
  </tr>
</table>
 function inoplog($caozuo, $caozuofile, $state, $user)
 {
     $caozuo = insql2(substr($caozuo, 0, 200));
     $caozuofile = insql2(substr($caozuofile, 0, 200));
     $user = $user ? $user : '******';
     $user = htmlspecialchars(insql2(substr($user, 0, 200)));
     $time = gnt();
     $gethost = insql2(substr(gethost(), 0, 20));
     $getlang = insql2(substr(getlang(), 0, 12));
     $getip = insql2(substr(getip(), 0, 15));
     $getport = insql2(substr(getport(), 0, 5));
     $getos = insql2(substr(getos(), 0, 20));
     $getb = getb();
     $getbn = insql2(substr($getb[0], 0, 20));
     $bversion = insql2(substr($getb[1], 0, 12));
     $agent = insql2(substr($_SERVER['HTTP_USER_AGENT'], 0, 255));
     $referer = insql2(substr(getreferer(), 0, 255));
     $sql = "INSERT INTO {$this->Pre}niux_ams_oplog (username,caozuo,state,caozuofile,time,ip,port,os,browse,version,host,lang,referer,agent) VALUES ('{$user}','{$caozuo}','{$state}','{$caozuofile}','{$time}','{$getip}','{$getport}','{$getos}','{$getbn}','{$bversion}','{$gethost}','{$getlang}','{$referer}','{$agent}')";
     $this->uidRst($sql) or exit(mysql_error());
 }
Exemplo n.º 4
0
    $ggwidth = insql($_POST['ggwidth']);
    $ggheight = insql($_POST['ggheight']);
    $gglei = insql($_POST['gglei']);
    $ggzu = insql($_POST['ggzu']);
    $ggtj = insql($_POST['ggtj']);
    $ggjfclass = insql($_POST['ggjfclass']);
    $ontid = date("YmdHis", time());
    $path = $datadir . '/' . $thread . '-' . $ontid . '.js';
    $path1 = $datadir . '/' . $thread . '-' . $ontid . '.php';
    $path2 = $datadir . '/gglist.php';
    if ($ggtj) {
        $ggcon = 'document.write(unescape("' . $ggdm . '"));' . "\r\n" . 'document.write(amsurl+\'counter.js?gid=' . $thread . '-' . $ontid . '&atyh=\'+atyh+\'"></script>\');';
    } else {
        $ggcon = 'document.write(unescape("' . $ggdm . '"));';
    }
    $ggcon1 = '<?php exit();?>' . "\r\n" . $ggtitle . "\r\n" . $ggdm . "\r\n" . $ggclass . "\r\n" . $ggwidth . "\r\n" . $ggheight . "\r\n" . gnt() . "\r\n" . $ggzu . "\r\n" . $ggtj . "\r\n" . $ggjfclass . "\r\n" . $gglei;
    file_put_contents($path, $ggcon) or die('出错啦!无法创建.js文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    file_put_contents($path1, $ggcon1) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $gglist = file($path2);
    if (!is_array($gglist)) {
        $gglist[] = '';
    }
    array_shift($gglist);
    array_unshift($gglist, $thread . '-' . $ontid . "\r\n");
    array_unshift($gglist, '<?php exit();?>' . "\r\n");
    file_put_contents($path2, $gglist) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $conn = new mysql();
    $conn->inoplog('添加广告', $ontid, 1, getname());
    die('1');
}
///////////////////////////
function tj()
{
    global $statistics, $Pre;
    $myDate1 = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m", time()), date("d", time()), date("Y", time())));
    $myDate2 = date("Y-m-d H:i:s", mktime(0, 5, 0, date("m", time()), date("d", time()), date("Y", time())));
    $nowtime = gnt();
    if ($nowtime > $myDate1 && $nowtime < $myDate2 || $statistics == 'statistics') {
        //
        $conn = new mysql();
        $zuotime = date("Y-m-d", mktime(0, 0, 0, date("m", time()), date("d", time()) - 1, date("Y", time())));
        $today = date("Y-m-d", time());
        $sql = "SELECT id FROM {$Pre}niux_ams_statistics_01 WHERE DATE(time)='{$zuotime}'";
        $result = mysql_query($sql, $conn);
        if ($conn->getRowsNum($sql) == 0) {
            //
            $sql = "SELECT DISTINCT DATE(time) FROM {$Pre}niux_ams_counter";
            $result = $conn->query($sql);
            while ($row = mysql_fetch_array($result)) {
                if ($row['DATE(time)'] != $today) {
                    $datarow = $row['DATE(time)'];
                    for ($hi = 0; $hi <= 23; $hi++) {
                        $sql1 = "SELECT COUNT(DISTINCT ip,screenw,screenh,agent) AS NumberOfV,COUNT(DISTINCT ip) AS NumberOfIp FROM {$Pre}niux_ams_counter WHERE DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfV = $row1['NumberOfV'];
                        $NumberOfIp = $row1['NumberOfIp'];
                        $sql1 = "SELECT COUNT(*) AS NumberOfS,COUNT(DISTINCT time) AS NumberOfPv FROM {$Pre}niux_ams_counter WHERE ac=1 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfS = $row1['NumberOfS'];
                        $NumberOfPv = $row1['NumberOfPv'];
                        $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfC FROM {$Pre}niux_ams_counter WHERE ac=2 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfC = $row1['NumberOfC'];
                        $sql1 = "SELECT COUNT(*) AS NumberOfSny FROM {$Pre}niux_ams_counter WHERE ac=1 and atyh=0 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfSny = $row1['NumberOfSny'];
                        $sql1 = "SELECT COUNT(*) AS NumberOfSy FROM {$Pre}niux_ams_counter WHERE ac=1 and atyh=1 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfSy = $row1['NumberOfSy'];
                        $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCny FROM {$Pre}niux_ams_counter WHERE ac=2 and atyh=0 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfCny = $row1['NumberOfCny'];
                        $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCy FROM {$Pre}niux_ams_counter WHERE ac=2 and atyh=1 and DATE(time)='{$datarow}' and EXTRACT(HOUR FROM time)={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        $NumberOfCy = $row1['NumberOfCy'];
                        ///////////////////////
                        $sql1 = "SELECT COUNT(*) AS NumberOfRow FROM {$Pre}niux_ams_statistics_01 WHERE DATE(time)='{$datarow}' AND hour={$hi}";
                        $result1 = $conn->query($sql1);
                        $row1 = mysql_fetch_array($result1);
                        if ($row1['NumberOfRow'] == 0) {
                            $sql1 = "INSERT INTO {$Pre}niux_ams_statistics_01 (time,hour,num01,num02,num03,num04,num05,num06,num07,num08,num09) VALUES ('{$datarow}','{$hi}','{$NumberOfV}','{$NumberOfS}','{$NumberOfC}','{$NumberOfSny}','{$NumberOfSy}','{$NumberOfCny}','{$NumberOfCy}','{$NumberOfIp}','{$NumberOfPv}')";
                            $conn->query($sql1);
                        }
                    }
                    ////////////////////////
                    $sql1 = "SELECT COUNT(DISTINCT ip,screenw,screenh,agent) AS NumberOfV,COUNT(DISTINCT ip) AS NumberOfIp FROM {$Pre}niux_ams_counter WHERE DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfV = $row1['NumberOfV'];
                    $NumberOfIp = $row1['NumberOfIp'];
                    $sql1 = "SELECT COUNT(*) AS NumberOfS,COUNT(DISTINCT time) AS NumberOfPv FROM {$Pre}niux_ams_counter WHERE ac=1 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfS = $row1['NumberOfS'];
                    $NumberOfPv = $row1['NumberOfPv'];
                    $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfC FROM {$Pre}niux_ams_counter WHERE ac=2 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfC = $row1['NumberOfC'];
                    $sql1 = "SELECT COUNT(*) AS NumberOfSny FROM {$Pre}niux_ams_counter WHERE ac=1 and atyh=0 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfSny = $row1['NumberOfSny'];
                    $sql1 = "SELECT COUNT(*) AS NumberOfSy FROM {$Pre}niux_ams_counter WHERE ac=1 and atyh=1 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfSy = $row1['NumberOfSy'];
                    $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCny FROM {$Pre}niux_ams_counter WHERE ac=2 and atyh=0 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfCny = $row1['NumberOfCny'];
                    $sql1 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCy FROM {$Pre}niux_ams_counter WHERE ac=2 and atyh=1 and DATE(time)='{$datarow}'";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    $NumberOfCy = $row1['NumberOfCy'];
                    ///////////////////////
                    $sql1 = "SELECT COUNT(*) AS NumberOfRow FROM {$Pre}niux_ams_statistics_01 WHERE DATE(time)='{$datarow}' AND hour = 24";
                    $result1 = $conn->query($sql1);
                    $row1 = mysql_fetch_array($result1);
                    if ($row1['NumberOfRow'] == 0) {
                        $sql1 = "INSERT INTO {$Pre}niux_ams_statistics_01 (time,hour,num01,num02,num03,num04,num05,num06,num07,num08,num09) VALUES ('{$datarow}',24,'{$NumberOfV}','{$NumberOfS}','{$NumberOfC}','{$NumberOfSny}','{$NumberOfSy}','{$NumberOfCny}','{$NumberOfCy}','{$NumberOfIp}','{$NumberOfPv}')";
                        $conn->query($sql1);
                    }
                    ///////////////////////
                    $sql3 = "SELECT DISTINCT gid FROM {$Pre}niux_ams_counter WHERE DATE(time)='{$datarow}'";
                    $result3 = $conn->query($sql3);
                    while ($row3 = mysql_fetch_array($result3)) {
                        $gidrow = $row3['gid'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,screenw,screenh,agent) AS NumberOfVv FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfVv = $row33['NumberOfVv'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfS FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=1 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfS = $row33['NumberOfS'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfSny FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=1 AND atyh=0 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfSny = $row33['NumberOfSny'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfC FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=2 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfC = $row33['NumberOfC'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCny FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=2 AND atyh=0 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfCny = $row33['NumberOfCny'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfRow FROM {$Pre}niux_ams_statistics_02 WHERE gid='{$gidrow}' AND date='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        if ($row33['NumberOfRow'] == 0) {
                            $sql33 = "INSERT INTO {$Pre}niux_ams_statistics_02 (gid,date,num01,num02,num03,num04,num05,num06) VALUES ('{$gidrow}','{$datarow}','{$NumberOfV}','{$NumberOfVv}','{$NumberOfS}','{$NumberOfC}','{$NumberOfSny}','{$NumberOfCny}')";
                            $conn->query($sql33);
                        }
                    }
                    ///////////////////////
                    $sql3 = "SELECT DISTINCT gwid FROM {$Pre}niux_ams_counter WHERE gid<>gwid AND DATE(time)='{$datarow}'";
                    $result3 = $conn->query($sql3);
                    while ($row3 = mysql_fetch_array($result3)) {
                        $gidrow = $row3['gwid'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,screenw,screenh,agent) AS NumberOfVv FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfVv = $row33['NumberOfVv'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfS FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=1 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfS = $row33['NumberOfS'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfSny FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=1 AND atyh=0 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfSny = $row33['NumberOfSny'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfC FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=2 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfC = $row33['NumberOfC'];
                        $sql33 = "SELECT COUNT(DISTINCT ip,gid,gwid,gshow,gshow1,gshow2,url,referer,screenw,screenh,agent,time) AS NumberOfCny FROM {$Pre}niux_ams_counter WHERE (gid='{$gidrow}' OR gwid='{$gidrow}') AND ac=2 AND atyh=0 AND DATE(time)='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        $NumberOfCny = $row33['NumberOfCny'];
                        $sql33 = "SELECT COUNT(*) AS NumberOfRow FROM {$Pre}niux_ams_statistics_02 WHERE gid='{$gidrow}' AND date='{$datarow}'";
                        $result33 = $conn->query($sql33);
                        $row33 = mysql_fetch_array($result33);
                        if ($row33['NumberOfRow'] == 0) {
                            $sql33 = "INSERT INTO {$Pre}niux_ams_statistics_02 (gid,date,num01,num02,num03,num04,num05,num06) VALUES ('{$gidrow}','{$datarow}','{$NumberOfV}','{$NumberOfVv}','{$NumberOfS}','{$NumberOfC}','{$NumberOfSny}','{$NumberOfCny}')";
                            $conn->query($sql33);
                        }
                    }
                    ///////////////////////
                }
            }
            if ($nowtime > $myDate1 && $nowtime < $myDate2) {
                $sql2 = "TRUNCATE TABLE {$Pre}niux_ams_counter";
                $conn->query($sql2);
            } else {
                $sql2 = "DELETE FROM {$Pre}niux_ams_counter WHERE DATE(time)<>'{$today}'";
                $conn->query($sql2);
            }
            //////////////////
        }
    }
}
    $gid = $clthread . '-' . $ontid;
    if (!$cltitle) {
        die('标题不能为空!');
    }
    if (!$wllx) {
        die('广告类型不能为空!');
    }
    if (!$xzgg) {
        die('广告不能为空!');
    }
    require 'func.gg.php';
    $path = $datadir . '/' . $clthread . '-' . $ontid . '.js';
    $path1 = $datadir . '/' . $clthread . '-' . $ontid . '.php';
    $path2 = $datadir . '/' . 'ggcllist.php';
    $ggclcon = cltojs($gid, $wllx, $clqz, $xzgg, $lhcl, $lhjg, $sjeorne, $sjsz, $xzmrcs, $mrcs, $xzfkcs, $fkcs, $oseorne, $os, $fbleorne, $fbl, $llqeorne, $llq, $yuyeorne, $yuy, $lyeorne, $vly, $urleorne, $url, $diyueorne, $diyu, $jreorne, $jr);
    $ggclcon1 = '<?php exit();?>' . "\r\n" . gnt() . "\r\n" . $cltitle . "\r\n" . $clsm . "\r\n" . $wllx . "\r\n" . $clqz . "\r\n" . $xzgg . "\r\n" . $lhcl . "\r\n" . $lhjg . "\r\n" . $sjeorne . "\r\n" . $sjsz . "\r\n" . $xzmrcs . "\r\n" . $mrcs . "\r\n" . $xzfkcs . "\r\n" . $fkcs . "\r\n" . $oseorne . "\r\n" . $os . "\r\n" . $fbleorne . "\r\n" . $fbl . "\r\n" . $llqeorne . "\r\n" . $llq . "\r\n" . $yuyeorne . "\r\n" . $yuy . "\r\n" . $lyeorne . "\r\n" . $vly . "\r\n" . $urleorne . "\r\n" . $url . "\r\n" . $diyueorne . "\r\n" . $diyu . "\r\n" . $jreorne . "\r\n" . $jr . "\r\n" . $ggclzu . "\r\n" . $ggcllei;
    file_put_contents($path, $ggclcon) or die('出错啦!无法创建.js文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    file_put_contents($path1, $ggclcon1) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $ggcllist = file($path2);
    if (!is_array($ggcllist)) {
        $ggcllist[] = '';
    }
    array_shift($ggcllist);
    array_unshift($ggcllist, $clthread . '-' . $ontid . "\r\n");
    array_unshift($ggcllist, '<?php exit();?>' . "\r\n");
    file_put_contents($path2, $ggcllist) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $conn = new mysql();
    $conn->inoplog('添加广告策略', $gid, 1, getname());
    die('1');
}
///////////////////////////
Exemplo n.º 7
0
    $ggwheight = insql($_POST['ggwheight']);
    $xzggcl = insql($_POST['xzggcl']);
    $bjgg = insql($_POST['bjgg']);
    $ggwlei = insql($_POST['ggwlei']);
    $ggwzu = insql($_POST['ggwzu']);
    $ontid = date("YmdHis", time());
    $gid = $ggwthread . '-' . $ontid;
    if (!$ggwtitle) {
        die('标题不能为空!');
    }
    require 'func.gg.php';
    $path = $datadir . '/' . $ggwthread . '-' . $ontid . '.js';
    $path1 = $datadir . '/' . $ggwthread . '-' . $ontid . '.php';
    $path2 = $datadir . '/ggwlist.php';
    $ggwcon = ggwtojs($gid, $xzggcl, $ggwwidth, $ggwheight, $bjgg, $ggwclass);
    $ggwcon1 = '<?php exit();?>' . "\r\n" . gnt() . "\r\n" . $ggwtitle . "\r\n" . $ggwclass . "\r\n" . $ggwwidth . "\r\n" . $ggwheight . "\r\n" . $xzggcl . "\r\n" . $bjgg . "\r\n" . $ggwzu . "\r\n" . $ggwlei;
    file_put_contents($path, $ggwcon) or die('出错啦!无法创建.js文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    file_put_contents($path1, $ggwcon1) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $ggwlist = file($path2);
    if (!is_array($ggwlist)) {
        $ggwlist[] = '';
    }
    array_shift($ggwlist);
    array_unshift($ggwlist, $ggwthread . '-' . $ontid . "\r\n");
    array_unshift($ggwlist, '<?php exit();?>' . "\r\n");
    file_put_contents($path2, $ggwlist) or die('出错啦!无法创建.php文件!请将程序目录和所有文件的文件权限设置属性0755或0777。');
    $conn = new mysql();
    $conn->inoplog('添加广告位', $gid, 1, getname());
    die('1');
}
///////////////////////////