My Recent Pastes (46 and counting)
Pastes by CodeOfficer (46 and counting)
Below are the 15 most recent pasties by CodeOfficer.
October 25, 2007
11:01AM EDT
by CodeOfficer
View all 41 lines
/**
* Loads and returns an array of orgs from the database
* querying by INT will return a row_array(), whereas
* querying by ARRAY will return a result_array()
* example ... $param = array( 'is_expired' => '1', 'id' => array('1', '2'));
October 25, 2007
1:05AM EDT
by CodeOfficer
View all 140 lines
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Input extends CI_Input{
function MY_Input()
October 24, 2007
3:45PM EDT
by CodeOfficer
View all 16 lines
# BEGIN www rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.codeofficer\.com$ [NC]
October 24, 2007
3:36PM EDT
by CodeOfficer
View all 17 lines
# BEGIN www rewrite
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|systemz|docs|common|favicon|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
October 24, 2007
1:57PM EDT
by CodeOfficer
View all 59 lines
{embed="html_elements/doctype"}
{assign_variable:my_weblog_name="myblog"}
{assign_variable:my_template_group="blog"}
{assign_variable:my_gallery="imagegallery"}
October 23, 2007
4:02PM EDT
by CodeOfficer
View all 115 lines
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class PermissionsModel extends Model {
function PermissionsModel() {
October 23, 2007
4:00PM EDT
by CodeOfficer
View all 17 lines
/**
* Return as much data about the page we're on (what IDs are its parents)
* return assoc array of ints
*/
function _get_variable_ids() {
October 22, 2007
8:40PM EDT
by CodeOfficer
View all 509 lines
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
// ------------------------------------------------------------------------
/**
October 22, 2007
2:15PM EDT
by CodeOfficer
View all 106 lines
<?php
class Org extends Controller {
function __construct()
October 20, 2007
7:59PM EDT
by CodeOfficer
$this->db->from('orgs')->orderby("name ASC")->limit($limit, $offset);
foreach ($variable as $key => $value) {
$this->db->where($key, $value);
}
$this->db->get();
October 20, 2007
2:15AM EDT
by CodeOfficer
View all 104 lines
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Message:: a class for writing feedback message information to the session
*
October 19, 2007
10:46PM EDT
by CodeOfficer
View all 35 lines
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Hierarchy
{
private $CI;
October 19, 2007
9:33PM EDT
by CodeOfficer
View all 103 lines
* { font-family: Verdana, "Lucida Grande", Geneva, Arial, Helvetica, sans-serif; }
html { background:#071544 url(/common/img/temp/pagetop.gif) repeat-x scroll left top; }
body { font-family: Verdana, "Lucida Grande", Geneva, Arial, Helvetica, sans-serif; background:transparent; margin:0; padding:0; }
/*form ,h1,h2,h3,h4,h5,h6 { font-family: Verdana, "Lucida Grande", Geneva, Arial, Helvetica, sans-serif; }*/
input, select, textarea { border:1px solid #aaaaaa; border-top:1px solid #666666; border-left:1px solid #666666; font-size:1em; line-height:1.5; background:#fcfcf9; padding:2px 2px; }
October 18, 2007
9:55PM EDT
by CodeOfficer
View all 9 lines
<label for="user_username">Username: <em>*</em></label>
<div class="field">
<div class="form_error">{$user_username_error|default:''}</div>
