⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r_web.php

📁 make project on java
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
include'../cache/config.inc.php';
include'begin.php';
adminlogin();
$handle = opendir('../cache/');
while ($file = readdir($handle)) {
    if ($file != 'config.inc.php' && $file != 'webclose.html') @unlink('../cache/' . $file);
} 
closedir($handle);
$handle = opendir('../cache/template/');
while ($file = readdir($handle)) {
    @unlink('../cache/template/' . $file);
} 
closedir($handle);
$result = mysql_query("select * from {$db_prefix}config", $myconn);
while ($row = mysql_fetch_array($result)) {
    $con[$row['id']] = str_replace("'", "\'", $row['value']);
} 
define('REWRIT_E',$con[12]?true:false);

if ($serverdiff != (int)$con[33]) {
    $valf = "<?php\n\$servername='$servername';\n\$dbname='$dbname';\n\$dbusername='$dbusername';\n\$dbpass='$dbpass';\n\$db_prefix='$db_prefix';\n\$serverdiff='" . (int)$con[33] . "';\n?>";
    $fp = fopen("../cache/config.inc.php", "w");
    fwrite($fp, $valf);
    fclose($fp);
} 
$list = "<?php\n";
$list .= $con[54]?"\$webclose=true;\n":"\$webclose=false;\n";
$list .= "\$fuclose=" . ($con[14]?'true':'false') . ";\n";
$list .= "\$bbsname='" . jsformat($con[24]) . "';\n";
$list .= "\$webname='" . jsformat($con[56]) . "';\n";
$list .= "\$keywords='" . jsformat(htmlspecialchars($con[26])) . "';\n";
$list .= "\$description='" . jsformat(htmlspecialchars($con[55])) . "';\n";

$list .= "\$weburl='" . jsformat($con[50]) . "';\n";

$list .= "\$jjxbbver='$con[21]';\n";
$list .= "\$tpup=$con[11];\n";
$list .= "\$uccode=".chr(rand(97, 122)).chr(rand(97, 122)).chr(rand(97, 122)).chr(rand(97, 122)).chr(rand(97, 122)).";\n";

$p = explode("|", $con[9]);
$list .= "\$ranknames=array(";
foreach($p as $c) {
    $list .= "'" . jsformat($c) . "',";
} 
$list .= ");\n";
$p = explode(",", $con[10]);
$q = explode(",", $con[58]);
while (list ($key, $val) = each($p)) {
    if ($val != '') $r .= "array($val,$q[$key]),";
} 

$list .= "\$_tp4=array($r);\n";
$list .= "\$_tp7=array($con[15]);\n";

$p = explode("|", $con[16]);
$list .= "\$tp8=array(";
foreach($p as $c) {
    if ($c != '') $list .= "$c,";
} 
$list .= ");\n";

$list .= "\$styledir=array(\n";
$result = mysql_query("select * from {$db_prefix}styles ORDER BY id", $myconn);
while ($row = mysql_fetch_array($result)) {
    $stylename[$row["id"]] = $row["name"];
    $styledir[$row["id"]] = $row["dir"];
    $list .= "$row[id]=>'" . jsformat(htmlspecialchars($row["dir"])) . "',\n";
} 
$list .= ");\n";

reset($styledir);

if (@$fp = fopen('../template/default/template.ini', 'r')) {
    $def_sid = @trim(fgets($fp, 1024));
    fclose($fp);
} else {
    echoerror(23);
} 

$list .= "\$style_type=array(";
$list2 = '';
while (list ($sid, $dir) = @each($styledir)) {
    if (file_exists('../template/' . $dir . '/template.ini')) {
        $fp = fopen('../template/' . $dir . '/template.ini', 'r');
        $msdid = @trim(fgets($fp, 1024));
        fclose($fp);
    } else {
        $msdid = $def_sid;
    } 

    $p = explode('|', $msdid);
    $list .= $sid . '=>' . ($p[1] > 1?2:1) . ",";
    $list2 .= $sid . '=>' . (int)$p[2] . ",";
} 
$list .= ");\n";
$list .= "\$styletitle_l=array(" . $list2 . ");\n";

$list .= "\$stylename=array(\n";
foreach($stylename as $key => $c) {
    $c = htmlspecialchars($c);
    $list .= "$key=>'$c',\n";
} 
$list .= ");\n";

$list .= "\$defstyle=$con[17];\n";

$list .= "\$userstyle=" . ($con[8]?'true':'false') . ";\n";

$list .= "define('REWRIT_E'," . ($con[12]?'true':'false') . ");\n";

$timet = $con[28] * 60;
$list .= "\$reg_jt=$timet;\n";
$p = $con[13]?'true':'false';
$list .= "\$signa=" . $p . ";\n";
$list .= "\$regipc=$con[64];\n";
$list .= "\$f_new=$con[30];\n";

$list .= "\$title_min=$con[68];\n";
$list .= "\$title_max=$con[69];\n";
$list .= "\$pols_min=$con[70];\n";
$list .= "\$pols_max=$con[71];\n";

$p = $con[29] * 60;
$list .= "\$onlinech=$p;\n";

$list .= "\$intervals=array($con[61]);\n";
$list .= "\$timeform='" . htmlspecialchars($con[31]) . "';\n";
$list .= "\$dateform='" . htmlspecialchars($con[32]) . "';\n";
$list .= "\$twt_co='$con[43]';\n";

$p = explode("|", $con[52]);
$list .= "\$tanya=array($p[0],$p[1]);\n";
$p = (int)$con[51] * 60;
$list .= "\$tnew=$p;\n";
$list .= "\$softdir='$con[44]';\n";
$list .= "\$imagedir='$con[45]';\n";
$list .= "\$updirdate=$con[34];\n";

$p = explode("|", $con[49]);
foreach($p as $key => $c) {
    $c = explode(",", $c);
    $list .= "\$pf$key=array($c[0],$c[1],$c[2]);\n";
} 
$p = explode("|", $con[1]);
$list .= "\$messagemode=array(";
foreach($p as $c) {
    $list .= "'$c',";
} 
$list .= ");\n";

$p = explode("|", $con[65]);
$list .= "\$vid_ubb=array(";
foreach($p as $c) {
    $list .= "'$c',";
} 
$list .= ");\n";

$p = explode("|", $con[66]);
$list .= "\$img_ubb=array(";
foreach($p as $c) {
    $list .= "'$c',";
} 
$list .= ");\n";

$list .= "\$facenum=$con[2];\n";
$listp1 = "\$purview1=array(\n";

$p = explode(",", $con[19]);
foreach($p as $key => $c) {
    $key++;
    $listp1 .= "$key=>'$c',\n";
} 
$listp1 .= ");\n";

$listp2 = "\$purview2=array(\n";
$p = explode(",", $con[18]);
foreach($p as $key => $c) {
    $key++;
    $listp2 .= "$key=>'$c',\n";
} 
$listp2 .= ");\n";

$listpj = "\$purviewj=array(\n";
$p = explode(",", $con[20]);
foreach($p as $key => $c) {
    $listpj .= "$key=>'$c',\n";
} 
$listpj .= ");\n";

$p = explode("|", $con[47]);
$list .= "\$sysgroupname=array(\n";
foreach($p as $key => $c) {
    $key++;
    $list .= "$key=>'" . htmlspecialchars($c) . "',\n";
} 
$list .= ");\n";

$p = explode("|", $con[4]);
$list .= "\$abc=array('" . jsformat(htmlspecialchars($p[0])) . "','" . jsformat(htmlspecialchars($p[1])) . "','" . jsformat(htmlspecialchars($p[2])) . "');\n";

$p = explode("|", $con[6]);

$list .= "\$vp=$p[0];\n";
$list .= "\$dvp=array($p[1]);\n";
$list .= "\$tvp=array($p[2]);\n";
$list .= "\$rvp=array($p[3]);\n";
$list .= "\$evp=array($p[4]);\n";
$p = explode("|", $con[5]);
$list .= "\$upp=array($p[0]);\n";
$list .= "\$upa=array($p[1]);\n";
$list .= "\$upb=array($p[2]);\n";
$list .= "\$upc=array($p[3]);\n";
$list .= $con[23]?"\$regclose=$con[23];\n":"\$regclose=0;\n";

$p = $con[37] * 3600 * 24;
$list .= "\$emotenum=$con[7];\n";
$list .= "\$emotenumpage=$con[36];\n";
$list .= "\$emotepage=$con[48];\n";
$list .= "\$reouttime=$p;\n";
$p = explode("|", $con[38]);
$list .= "\$namemin=$p[0];\n";
$list .= "\$namemax=$p[1];\n";
$list .= "\$passwordmin=$p[2];\n";
$list .= "\$passwordmax=$p[3];\n";

$list .= "\$estop='" . jsformat(htmlspecialchars($con[39])) . "';\n";

$p = explode("|", $con[40]);
$list .= "\$treadnum=$p[0];\n";
$list .= "\$headnum=$p[1];\n";

$listup = "\$upfiletype=array(";
$p = explode("|", $con[41]);
foreach($p as $c) {
    $listup .= "'$c',";
} 
$listup .= ");\n";
$p = explode("\t", $con[53]);
$list .= "\$honors=array(\n";
foreach($p as $key => $c) {
    $key++;
    if (trim($c) != '') $list .= "$key=>'" . htmlspecialchars($c) . "',\n";
} 
$list .= ");\n";
unset($fto);
$result = mysql_query("select * from {$db_prefix}forums ORDER BY vieworder", $myconn);
while ($row = mysql_fetch_array($result)) {
    $fnamet .= "$row[fid]=>'$row[name]',\n";
    $fto[$row["fup"]][] = $row['fid'];
    $ftup[$row["fid"]] = $row["fup"];
    if ($row['r'] > 0) $fr[] = $row['fid'];
    if ($row["fup"] == 0) $aup .= "$row[fid],";
    if ($row["type"] == 3) $zup .= "$row[fid],";
} while (list (, $val) = @each($fto[0])) {
    while (list (, $val2) = @each($fto[$val])) {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -