You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							714 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							714 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								/**
							 | 
						|
								
							 | 
						|
								 * [Laike System] Copyright (c) 2017-2020 laiketui.com
							 | 
						|
								
							 | 
						|
								 * Laike is not a free software, it under the license terms, visited http://www.laiketui.com/ for more details.
							 | 
						|
								
							 | 
						|
								 */
							 | 
						|
								require_once(MO_LIB_DIR . '/DBAction.class.php');
							 | 
						|
								
							 | 
						|
								class gethotAction extends Action {
							 | 
						|
								
							 | 
						|
								    public function getDefaultView() {
							 | 
						|
								    	
							 | 
						|
								       
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function execute(){
							 | 
						|
								        $db = DBAction::getInstance();
							 | 
						|
								        $sql = 'select keyword from lkt_hotkeywords';
							 | 
						|
								        $res = $db -> selectarray($sql);
							 | 
						|
								        foreach ($res as $k => $v) {
							 | 
						|
								            $res[$k] = $v['keyword'];
							 | 
						|
								        }
							 | 
						|
								        echo json_encode($res);exit();
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function getRequestMethods(){
							 | 
						|
								        return Request :: POST;
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								?>
							 |