mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 22:12:26 +01:00 
			
		
		
		
	
							
								
								
									
										16
									
								
								webui/model/audit/removal.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								webui/model/audit/removal.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| <?php | ||||
|  | ||||
| class ModelAuditRemoval extends Model { | ||||
|  | ||||
|    public function get_pending_removals($page_len = 0) { | ||||
|       $limit = ''; | ||||
|       $from = (int)$page * (int)$page_len; | ||||
|  | ||||
|       if($page_len > 0) { $limit = " LIMIT " . (int)$from . ", " . (int)$page_len; } | ||||
|  | ||||
|       $query = $this->db->query("SELECT * FROM " . TABLE_DELETED . " WHERE deleted=0 ORDER BY date1 DESC $limit"); | ||||
|        | ||||
|       return $query->rows; | ||||
|    } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user