📄 updatesend.php
字号:
<?phpdefined('WikyBlog') or die("Not an entry point...");includeFile('search/all.php');class sendUpdate extends query{ var $classes; var $result; var $selectA =array(); function sendUpdate(){ global $pageOwner,$dbInfo,$wbConfig,$wbTablePrefix,$wbTables; $this->rowLimit = 20; $this->searchUrl = '/Special/'.$pageOwner['username'].'/SendUpdate'; $this->selectA[] = 'lang'; $this->selectA[] = 'title'; $this->selectA[] = 'content'; $helpTable = ' `'.$wbTablePrefix.'help` '; $this->query = 'SELECT SQL_CALC_FOUND_ROWS '.implode(',',$this->selectA); $this->query .= ' FROM '.$helpTable.' LEFT JOIN '.$wbTables['all_files']; $this->query .= ' ON '.$wbTables['all_files'].'.`file_id` = '.$helpTable.'.`file_id` '; $this->query .= ' WHERE 1=1 '; $this->query .= ' AND !FIND_IN_SET("hidden", '.$wbTables['all_files'].'.`flags`) '; $this->query .= ' AND !FIND_IN_SET("deleted", '.$wbTables['all_files'].'.`flags`) '; $this->query .= ' AND !FIND_IN_SET("redirect", '.$wbTables['all_files'].'.`flags`) '; $_GET += array('v'=>''); if( $_GET['v'] != '2'){ $this->result[] = 'error=true'; } if( isset($_GET['m']) && isset($_GET['t']) ){ if( is_numeric($_GET['m']) && is_numeric($_GET['t']) ){ $timeDiff = $_GET['t']-time(); $timeDiff = round($timeDiff/3600); //round to full hours $timeDiff = $timeDiff*3600; //back to unix $_GET['m'] = $_GET['m']-$timeDiff; $this->query .= ' AND UNIX_TIMESTAMP(modified) > '.$_GET['m']; } } if( isset($_GET['f']) && is_array($_GET['f']) ){ foreach($_GET['f'] as $file){ //$this->query .= ' AND title != CONCAT("wikyblog/","'.wbDB::escape($file).'")'; $temp = wbExplode('/',$file); //$this->query .= ' AND title != CONCAT("","'.wbDB::escape($file).'")'; } } $this->query .= ' ORDER BY modified DESC'; browseSearch3($this,'Send Update'); } function mysqlFetch(&$result){ return mysql_fetch_object($result); } function displayNumbers(&$from,&$to,&$rowsFound,&$prev,&$next){ global $page; $this->result[] = 'rowsFound='.$rowsFound; } function displayEmpty(){ return true; } function abbrevOutput(&$row,$i){ global $page; foreach($this->selectA as $key){ $this->result[] = $i.'['.postEscape($key).']='.postEscape($row->$key); } } function displayPost(&$prev,&$pages,&$next){ //echo $prev.$pages.$next; if( isset($_GET['raw'])){ ob_clean(); header('Content-type: text/plain; charset=UTF-8'); } echo implode('&',$this->result); if( isset($_GET['raw'])){ exit(); } } function setLinks(&$currentPageNum,&$rowsFound,&$tabLabel){ $this->currLabel = 'test'; } function displayPre(){ }} new sendUpdate();/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //function postEscape(&$text){ return urlencode( $text); //return rawurlencode($text);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -