ibf_path = $ibf_path; // Get config file require_once("conf_global.php"); $this->INFO = $INFO; } function db_connect( $db='' ) { require_once( $this->ibf_path.'Drivers/mySQL.php' ); $this->DB = new db_driver(); $this->DB->obj['sql_database'] = ( ! empty( $db ) ) ? $db : $this->INFO['sql_database']; $this->DB->obj['sql_user'] = $this->INFO['sql_user']; $this->DB->obj['sql_pass'] = $this->INFO['sql_pass']; $this->DB->obj['sql_host'] = $this->INFO['sql_host']; $this->DB->obj['sql_tbl_prefix'] = ( ! empty( $db ) ) ? '' : $this->INFO['sql_tbl_prefix']; $this->DB->connect(); } function disconnect() { $this->DB->close_db(); } function debug( $stuff ) { echo '
'; print_r( $stuff ); echo '
'; } // ----------------------------------------------------- // HTML Stuff // ----------------------------------------------------- // '\"<img' + function start_page($title) { echo" ".$title." "; } function text_box( $name, $value, $size=30 ) { return ""; } function table_simple_start( $width='90%' ) { echo " "; } function start_form( $act='', $js='', $name='form' ) { $act == ( $act ) ? $act : $_SERVER['PHP_SELF']; echo ""; } function start_formupload() { $act == ( $act ) ? $act : $_SERVER['PHP_SELF']; echo ""; } function copyright() { echo "

"; echo "

Copyright © 2005, Keith Turbyfill. All Rights Reserved.

"; } function button( $value, $js='', $name='submit', $style='', $type='submit') { return ""; } function end_form() { echo ""; } function redirect( $url, $txt ) { echo " Stand By
$txt

"; die(); } function table_start( $title, $headings=array(), $width='90%', $sheadings=1 ) { $this->colspan = count( $headings ); echo " "; if( $sheadings ) { echo ""; foreach( $headings as $heading ) { echo ""; } echo ""; } } function table_basic( $info, $width='90%' ) { echo "
{$title}
{$heading[1]}
"; if( is_array( $info ) ) { foreach( $info as $i ) { echo ""; } } else { echo ""; } echo "
{$i}{$info}

"; } function table_row( $row, $c=array(), $d=array(), $e=array(), $align='left' ) { if( empty( $c ) ) { $this->row = ( $this->row == 1 ) ? 2 : 1; } echo ""; foreach( $row as $id => $i ) { if( empty( $c ) ) { $row = $this->row; } else { $row = $c[$id]; } if( empty( $d ) ) { $a = $align; } else { $a = $d[$id]; } if( empty( $e ) ) { $va = 'middle'; } else { $va = $e[$id]; } // echo "
Row: ".$row; echo "{$i}"; } echo ""; } function table_row_start() { if( empty( $c ) ) { $this->row = ( $this->row == 1 ) ? 2 : 1; } echo ""; } function table_row_data( $row, $c=array(), $d=array(), $e=array(), $align='left' ) { foreach( $row as $id => $i ) { if( empty( $c ) ) { $row = $this->row; } else { $row = $c[$id]; } // Force dark cells $row = "row1"; if( empty( $d ) ) { $a = $align; } else { $a = $d[$id]; } if( empty( $e ) ) { $va = 'top'; } else { $va = $e[$id]; } echo "{$i}"; } } function table_row_end() { echo ""; } function table_dualstart( $title, $headings=array(), $width='90%', $sheadings=1 ) { $this->colspan = count( $headings ); echo " "; } function table_row_dualleft( $data ) { echo ""; } function table_end( $out='' ) { if( $out ) { echo " "; } echo "
{$title}
{$data}
{$out}

"; } function standard_header() { echo "
Photos  
 

"; } function standard_footer() { echo "

"; echo "

  



"; echo "


Home

"; echo "


Copyright © 2005 Keith Turbyfill.  All Rights Reserved.

 "; } function back_button() { echo "

"; } function close_button() { echo "

"; } } // ---------------------------------------------------------------------- // CleanVar( $input ) // Purpose: Cleans any "dangerous" elements from a string // Usage: $var = $STD->CleanVar( $var ); // Returns: string // ---------------------------------------------------------------------- function CleanVar( $input ) { $input = strip_tags( $input ); $input = htmlspecialchars( $input ); $input = escapeshellcmd( $input ); $input = stripslashes( $input ); $input = preg_replace( "//" , "-->" , $input ); $input = preg_replace( "/