webmain/system/beifen/beifenAction.php
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
@set_time_limit(3600);
class beifenClassAction extends Action
{
public function chushuaAjax()
{
$myext = $this->getsession('adminallmenuid');
if(getconfig('systype')=='demo')return '演示请勿操作';
if($myext!='-1')return '只有管理员才可以用';
$tabstr = 'daily,file,files,flow_log,flow_todos,flow_checks,im_history,im_mess,im_messzt,infor,infors,log,logintoken,meet,reads,sjoin,work,todo,flow_chao,flow_bill,flow_remind,goodm,goodn,goodss,goods,kqanay,kqdkjl,kqerr,kqout,kqinfo,location,official,officialfa,officialhong,schedule,scheduld,project,userinfo,userinfos,userract,hrpositive,word,hrredund,hrsalary,customer,custsale,custract,custfina,custappy,assetm,book,bookborrow,carm,carms,carmang,carmrese,email_cont,emailm,emails,sealapl,vcard,tovoid,editrecord,wouser,dailyfx,knowtraim,knowtrais,fininfom,fininfos,hrtrsalary,hrtransfer,hrdemint,reward,offyuebd,repair,knowtiku,kqdisv,knowledge,kqjcmd,kqjuser,kqjsn,hrcheck,receipt,hrcheckn,hrchecks,hrkaohem,hrkaohes,hrkaohen,demo,finpiao,wordxie,wordeil,subscribe,subscribeinfo,news,finzhang,finkemu,finount,finjibook,custplan,wenjuan,wenjuat,wenjuau,dangan,danganjy,wotpl,seal,godepot,im_tonghua,bianjian';
$mrows = m('mode')->getall("`id`>=108 and `type`<>'系统'");
foreach($mrows as $k1=>$rs1){
if(!isempt($rs1['table']))$tabstr.=','.$rs1['table'].'';
if(!isempt($rs1['tables']))$tabstr.=','.$rs1['tables'].'';
}
$tables = explode(',', $tabstr);
$alltabls = $this->db->getalltable();
foreach($tables as $tabs){
$_tabs = ''.PREFIX.''.$tabs.'';
$yunbo = false;
if(in_array($_tabs, $alltabls) || !$alltabls)$yunbo = true;
if($yunbo){
$sql1 = "delete from `$_tabs`";
$sql2 = "alter table `$_tabs` AUTO_INCREMENT=1";
$this->db->query($sql1, false);
$this->db->query($sql2, false);
}
}
$this->option->delpid('-2,-102'); //收信的清空
if(!getconfig('platdwnum')){
m('company')->delete('id>1');
$sql2 = "alter table `[Q]company` AUTO_INCREMENT=1";
$this->db->query($sql2, false);
}
echo 'ok';
}
public function beifenAjax()
{
m('beifen')->start();
echo 'ok';
}
public function getdataAjax()
{
if(getconfig('systype')=='demo')exit('演示请勿操作');
$carr = c('file')->getfolderrows(''.UPDIR.'/data');
$rows = array();
$len = count($carr);
$oux = 0;
for($k=$len-1;$k>=0;$k--){
if($oux>100)break;
$fils = $carr[$k];
$fils['xu'] = $k;
$rows[] = $fils;
$oux++;
}
if($rows)$rows = c('array')->order($rows, 'filename');
后面还有 275 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
