My Recent Pastes (46 and counting)

Pastes by CodeOfficer (46 and counting)

Pages:

Below are the 15 most recent pasties by CodeOfficer.

October 25, 2007
11:01AM EDT
by CodeOfficer

        /**
         * 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

<?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

# 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

# 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

{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

<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 

class PermissionsModel extends Model {

        function PermissionsModel() {

October 23, 2007
4:00PM EDT
by CodeOfficer

        /**
         * 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

<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
 
// ------------------------------------------------------------------------

/**

October 22, 2007
2:15PM EDT
by CodeOfficer

<?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

<?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

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Hierarchy
{
        private $CI;

October 19, 2007
9:33PM EDT
by CodeOfficer

* { 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

                        
                                <fieldset>

                                        <legend>Org Owner</legend>

October 18, 2007
9:55PM EDT
by CodeOfficer

                        
                                        <label for="user_username">Username: <em>*</em></label>
                                        <div class="field">
                                        <div class="form_error">{$user_username_error|default:''}</div>

Next page