HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/home/awaldron/public_html/archive/mg/application/libraries/wordpress.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Message:: a crap class for sending messages via the session. frank had to rewrite this shitty ass code.
 *
 * @version 1.0
 */

class Wordpress{
	
	public function getPosts(){

		$CI =& get_instance();
		$CI->load->model('wordpress_model');

		$posts=$CI->wordpress_model->getPosts();
		
		$post=array();
		$ct=0;
		foreach($posts as $p){
			$tmp=array(
				'title'=>$p['title'],
				'name'=>$p['name'],
				'date'=>$p['date'],
				'excerpt'=>$p['excerpt'],
				'id'=>$p['id'],
			);
			array_push($post, $tmp);
			$ct++;
			if($ct>=2){
				break;
			}
		}

		return $post;
		
	}

}