0 ) $base_url = $_SERVER['HTTP_HOST'].substr( dirname($_SERVER['SCRIPT_NAME']), 0, -strlen($CALLED_FROM_DIR) ); else { $script_name_dir = dirname($_SERVER['SCRIPT_NAME']); if( $script_name_dir == "/" ) $script_name_dir = ""; $base_url = $_SERVER['HTTP_HOST'].$script_name_dir; } $BASE_URL = "HTTP://www.vanagonauts.com"; $BASE_SECURE_URL = "HTTPS://www.vanagonauts.com"; // Indicate that this file has been referenced $SITEINFO = TRUE; /* * * Dynamic Configuration - Parameters that DO change based on location * */ //switch( $GLM_SERVER_ID ) // { // case "cs1.gaslightmedia.com": // Use the $BASE_URL for secure URL on Devsys $BASE_SECURE_URL = $BASE_URL; // break; // case "ws1.gaslightmedia.com": // $BASE_SECURE_URL = "HTTPS://".$base_url; // break; // // default: // There should be no need for any settings here // break; // } /*! @defined BASE_URL @discussion The url base */ define("BASE_URL", $BASE_URL."/"); /*! @defined URL_BASE @discussion The url base */ define("URL_BASE", $BASE_URL."/"); /*! @defined BASE_PATH @discussion The base path for this site. */ define("BASE_PATH", $BASE_PATH."/"); /*! @defined BASE @discussion The base path for this site. */ define("BASE", $BASE_PATH."/"); /*! @defined HELP_BASE @discussion The help files path. */ define("HELP_BASE", "help/"); /*! @defined UP_BASE @discussion The uploads path. */ define("UP_BASE", BASE."files/"); /*! @defined IMG_BASE @discussion The image path. */ define("IMG_BASE", URL_BASE."images/"); /*! @defined POSTCARD_URL @discussion The url for the Postcard Application. */ define("POSTCARD_URL",URL."postcard.phtml"); /*! @defined LOGO_IMG @discussion The path for the admin logo. */ define("LOGO_IMG",URL_BASE."assets/list-sticker-icon.gif"); /*! @defined HELP_IMG @discussion The path for the help image. */ define("HELP_IMG",URL_BASE."images/help.gif"); /*! @defined HELP_IMG @discussion The path to the original images. */ define("ORIGINAL_PATH", BASE."images/original/"); /*! @defined ORIGINAL_PATH @discussion The path to the resized images. */ define("RESIZED_PATH", BASE."images/resized/"); /*! @defined RESIZED_PATH @discussion The path to the midsized images. */ define("MIDSIZED_PATH", BASE."images/midsized/"); /*! @defined MIDSIZED_PATH @discussion The path to the thumb images. */ define("THUMB_PATH", BASE."images/thumb/"); /*! @defined ORIGINAL @discussion The url path to the original images. @discussion */ define("ORIGINAL", URL_BASE."images/original/"); /*! @defined RESIZED @discussion The url path to the resized images. */ define("RESIZED", "http://www.vanagonauts.com/images/resized/"); /*! @defined MIDSIZED @discussion The url path to the midsized images. */ define("MIDSIZED", "http://www.vanagonauts.com/images/midsized/"); /*! @defined THUMB @discussion The url path to the thumb images. */ define("THUMB", URL_BASE."images/thumb/"); /*! @defined FOOTER_IMG @discussion The footer image. */ define("FOOTER_IMG", URL_BASE."images/logosmall.gif"); /*! @defined FOOTER_URL @discussion Footer url. */ define("FOOTER_URL", URL_BASE); /*! @defined STYLE @discussion The syle sheet used for the admin section. */ define("STYLE","styles.css"); /* Libraries */ /* Replaced with the actual functions instead of includes (2001-12-14) */ /*! @function valid email @abstract Function for credit card validation @discussion Checks for a valid format and good (mx check) email address. @param email the email address as string. @result bool true if good false if bad. */ function valid_email ($email) { if (eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", $email, $check)) { if ( getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) ) { return TRUE; } } return FALSE; } /*! @function CreditVal @abstract Function for credit card validation @discussion Checks for a valid credit card number doing Luhn check, if no card type is given, attempts to guess. Then, if a list of accepted types is given, determines whether or not we'll accept it. @param Num the credit card number @param Name the type of card
can be mastercard,
visa,
americanexpress,
discover,
dinerscard @param Accepted cards that can be processed
Accepted is an optional comma-separted
list. If the credit card type isn't one
listed here, the function returns FALSE
immediately. @result bool - returns true if number and name are good values, false if not */ function CreditVal($Num, $Name = '', $Accepted='') { $Name = strtolower( $Name ); $Accepted = strtolower( $Accepted ); $GoodCard = 1; $Num = ereg_replace("[^[:digit:]]", "", $Num); switch ($Name) { case "mastercard" : $GoodCard = ereg("^5[1-5].{14}$", $Num); break; case "visa" : $GoodCard = ereg("^4.{15}$|^4.{12}$", $Num); break; case "americanexpress" : $GoodCard = ereg("^3[47].{13}$", $Num); break; case "discover" : $GoodCard = ereg("^6011.{12}$", $Num); break; case "dinerscard" : $GoodCard = ereg("^30[0-5].{11}$|^3[68].{12}$", $Num); break; default: if( ereg("^5[1-5].{14}$", $Num) ) $Name = "mastercard"; if( ereg("^4.{15}$|^4.{12}$", $Num) ) $Name = "visa"; if( ereg("^3[47].{13}$", $Num) ) $Name = "americanexpress"; if( ereg("^6011.{12}$", $Num) ) $Name = "discover"; if( ereg("^30[0-5].{11}$|^3[68].{12}$", $Num) ) $Name="dinerscard"; break; } // If there's a limit on card types we accept, check for it here. if( $Accepted ) { $type_verified = FALSE; $brands = explode_trim( ",", $Accepted ); foreach( $brands as $brand ) if( $Name == $brand ) $type_verified = TRUE; if( !$type_verified ) return(FALSE); } $Num = strrev($Num); $Total = 0; for ($x=0; $x
FOOTER_IMG
$msg"?>
\n\t\n"; if($i == count($nav)) print"\n"; } ?> <?echo $title?>
<?echo HEAD?>
$value) */// enctype=\"multipart/form-data\" function form_header($action, $method, $hidden = "") { echo "
"; if($hidden != "" && is_array($hidden)) { foreach($hidden as $key=>$value) { echo ""; } } } /*! @function text_area @discussion Creates textarea with good default values for rows cols and wrap. @param $name -- string form action string @param $value -- string Method of form @param $rows -- int4 number of rows in textarea box @param $cols -- int4 number of cols in textarea box @param $wrap -- string the wrap value for the textarea box */ function text_area($name, $value, $rows = 15, $cols = 80, $wrap = "virtual" ) { echo ""; } /*! @function text_box @discussion Creates a input box for text with 35 as default size @param $name -- string name of text box @param $value -- string value of text box @param $size -- string size of text box */ function text_box($name, $value, $size = 35) { echo ""; } /*! @function form_footer @discussion Closes up the form tag, and includes the submit button $param $name -- string form action string $param $value -- string Method of form $param $cs -- int colspan for td */ function form_footer($name, $suppress = 0, $cs) { echo " "; if($suppress == 1) { echo ""; } /* echo "";*/ echo "
"; } /* Graphics Libraries */ /*! @function process_image @abstract Global references: @discussion Main function for image processing NOTES: This function does the following: 1) places image into original folder 2) makes three images from original size and places them into the RESIZED, MIDSIZED, and THUMB folders @param $image -- The variable of the image being post from the form @param $image_name -- The variable_name of the image being post @result string - Returns $image_name */ function process_image ($image,$image_name) { $ITEM_RESIZED = "'387>'"; $ITEM_MIDSIZED = "'210>'"; $ITEM_THUMB = "'120>'"; if(!defined("ORIGINAL_PATH")) html_error("this not defined original_path",1); if(!defined("RESIZED_PATH")) html_error("this not defined resized_path",1); if(!defined("MIDSIZED_PATH")) html_error("this not defined midsized_path",1); if(!defined("THUMB_PATH")) html_error("this not defined thumb_path",1); $image_upload_array = img_upload($image,$image_name,ORIGINAL_PATH); img_resize($image_upload_array[1],RESIZED_PATH.$image_upload_array[0],'a',$ITEM_RESIZED); img_resize($image_upload_array[1],MIDSIZED_PATH.$image_upload_array[0],'a',$ITEM_MIDSIZED); img_resize($image_upload_array[1],THUMB_PATH.$image_upload_array[0],'a',$ITEM_THUMB); $image_name = $image_upload_array[0]; return($image_name); } /*! @function img_resized @discussion Resizes an image based on a full scale jpeg or gif @param $path2image -- path to image which needs to be resized @param $path2thumb -- path where resized image will live @param $axis -- 'h' for height , 'w' for width , or 'a' for both @param $size -- using axis size of new image @result $img_resized_array */ function img_resize($path2image,$path2thumb,$axis,$size) { $imageName = basename($path2image); $thumbName = basename($path2thumb); $Path2GraphicsTools = "/usr/X11R6/bin"; if( TRUE ) { $imageAttributes = GetImageSize($path2image); $imageWidth = $imageAttributes[0]; $imageHeight = $imageAttributes[1]; if ($imageWidth < $size && $imageHeight < $size) { exec("cp $path2image $path2thumb"); // chmod($path2thumb, 0666); } else { if (($axis == "h" || $axis == "a") && ($imageHeight > $imageWidth)) { exec("$Path2GraphicsTools/convert -geometry $size $path2image $path2thumb"); } if (($axis == "w" || $axis == "a") && ($imageWidth >= $imageHeight)) { exec("$Path2GraphicsTools/convert -geometry $size $path2image $path2thumb"); } } $img_resize_array = array("$imageName","$path2image","$thumbName","$path2thumb"); return($img_resize_array); } else { echo '' .'Unable to complete Resize Function, The file being processed is not an acceptable image file. Please use only .GIF or .JPG files' .'
' .'
' ."Hit your browser's back button to continue" .'

'; $error[0] = "ERROR"; return($error); } } /**********************************************/ /** * img_upload * simplified to use the file_upload function with restricted set to true * which will return an array instead of string (as in files) * and only allow png,gif,jpg images to be uploaded * * @param mixed $form_field * @param mixed $img_name * @param mixed $destination_path * @access public * @return string */ function img_upload( $form_field, $img_name, $destination_path ) { return( file_upload( $form_field, $img_name, $destination_path, true ) ); } /************************************************/ function file_upload( $form_field, $file_name, $destination_path, $restricted = false ) { $file_name_in_use = false; $file_name = ereg_replace( "[!@#$%^&()+={};:\'\"\/ ]", "-", $file_name ); if( $restricted ) { $size = getImageSize( $form_field ); if( !in_array( $size[2], array( 1, 2, 3 ) ) ) { echo '

' .'The file you uploaded was of an incorect type, please only upload .gif,.png or .jpg files' .'
' .'

' ."Hit your browser's back button to continue" .'

'; $error[0] = "ERROR"; return($error); } } if( file_exists( $destination_path.$file_name ) ) { $file_name_in_use = true; } if( $file_name_in_use == true ) { $new_file_name = mktime().$file_name; $new_file_location = $destination_path.$new_file_name; copy( $form_field, $new_file_location ); $file_upload = $new_file_name; $file_upload_array = array( $new_file_name, $new_file_location ); } else { $new_file_name = $file_name; $new_file_location = $destination_path.$new_file_name; copy( $form_field, $new_file_location ); $file_upload = $new_file_name; $file_upload_array = array( $new_file_name, $new_file_location ); } if( is_file( $new_file_location ) ) { chmod( $new_file_location, 0666 ); } if( $restricted ) { return( $file_upload_array ); } else { return( $file_upload ); } } /*************************************************/ /* Functions */ /*! @function http_strip @discussion Strips the http:// part from start of string @param $string -- $string @result $string -- the string minus http:// in front */ function http_strip(&$string) { $test_string = strtolower($string); if(substr($test_string,0,7) == "http://") { $string = substr($string,7); } } /*! @function footer @discussion Outputs html ending code */ function footer() { ?>


  
HTML HELP ONLINE HELP

Portable Site Data - setup.phtml

CVS Version Id: $Id: setup.phtml,v 1.2 2003/04/25 13:49:44 jmeek Exp $
SITENAME '.SITENAME.'
BASE '.BASE.'
UP_BASE '.UP_BASE.'
HELP_BASE '.HELP_BASE.'
IMG_BASE '.IMG_BASE.'
URL_BASE '.URL_BASE.'
CONN_STR '.CONN_STR.'
STYLE '.STYLE.'
ORIGINAL_PATH '.ORIGINAL_PATH.'
RESIZED_PATH '.RESIZED_PATH.'
MIDSIZED_PATH '.MIDSIZED_PATH.'
THUMB_PATH '.THUMB_PATH.'
ORIGINAL '.ORIGINAL.'
RESIZED '.RESIZED.'
MIDSIZED '.MIDSIZED.'
THUMB '.THUMB.'
$CALLED_FROM_DIR '.$CALLED_FROM_DIR.' 
$BASE_PATH '.$BASE_PATH.'
$BASE_URL '.$BASE_URL.'
$BASE_SECURE_URL '.$BASE_SECURE_URL.'
 


'; } } function date_entry($month,$day,$year,$month_name,$day_name,$year_name) { $cur_date = getdate(); if($month == "") { $month = $cur_date['mon']; } if($day == "") { $day = $cur_date['mday']; } if($year == "") { $year = $cur_date['year']; } $date = '"; for($i=1;$i<=12;$i++) { $time .= "

%s %s %s %s %s


', $this->set_header($val[name]), $this->set_img($val[image],MIDSIZED), $this->set_text($val[description]), $this->set_email($val[email],$val[email]), $this->set_phone($val[phone]) ); } } echo '
'; break; case "links": if(is_array($this->items)) { foreach($this->items as $key=>$val) { $url = ($val[url])?''.$val[urlname].'':''; printf("
%s %s
", $url, $this->set_text($val[description]) ); } } break; default: if(is_array($this->items)) { foreach($this->items as $key=>$val) { $url = ($val[url])?''.$val[urlname].'':''; if($this->items[$key][image] && ($this->items[$key][image2] || $this->items[$key][image3])) { $breakage = "
"; } else { $breakage = "

", $val[name], $val[contactname], $val[year], $val[model], $val[bentley], $val[email], $val[url], $val[file], $val[file2], $val[file3], $val[symptom], $val[image], $val[description].$breakage, $val[image2], $val[description2].$breakage, $val[image3], $val[description3] ); ////////////if there are fwiw comments for this entry, show the link to them. //echo $fwiw_query; //print_r($this->fwiw); $fwiw_query = "SELECT * FROM fwiw WHERE busid = $val[id]"; //$this->items[busid]"; //$val[id]"; //'.bus.id.' AND catid=$catid";&catid='.$this->catid.' $this->fwiw = $this->DB->db_auto_get_data($fwiw_query); if((is_array($this->fwiw))&&!empty($this->fwiw)) echo 'See Comments on this entry (F.W.I.W.)

'; ///////////////Comments fields/////////////// /* if(catid != 127) echo'
Add something to this topic.

Name




'; */ } } break; } } /*! @function sub_nav @abstract Gaslight Media Toolbox® @discussion Create a sub navigation 4 across @param catid The catid for the page. @result void */ function sub_nav($catid) { // $catid = $this->get_parentid($catid); //$catid = $id; $query = "SELECT id,category FROM bus_category WHERE parent = $catid ORDER BY pos"; $data = $this->DB->db_auto_get_data($query); if(is_array($data)) { echo '

'; $counter = 1; foreach($data as $key=>$val) { echo ''; echo $val[category]; echo '
'; } echo '
'; } } /*! @function get_parentid @abstract Gaslight Media Too @discussion Get the parent id for the category. @param id The catid for the page. @param parentshow An array of bus_categories. @result parentid Thcatid of the parent. */ function get_parentid($id,$parentshow=NULL) { if($id == 0) return(0); if($parentshow=="") { $this->DB->db_connect(); $qs = "SELECT id,parent,category FROM bus_category"; $parentrow = $this->DB->db_auto_get_data($qs); $this->DB->db_close(); foreach($parentrow as $key=>$value) { $parentshow["$value[id]"] = $value['parent']; } } if($parentshow["$id"] != "") { $test = $parentshow["$id"]; if($test == 0) { return($id); } else { $id = $this->get_parentid($test,$parentshow); } if($id == 0) return($test); return($id); } return($id); } /*! @function show_catimg @abstract Gaslight Media Toolbox® @discussion output the category image. @param catid The catid for the page. @result void */ function show_catimg($catid) { $this->DB->db_connect(); $query = "SELECT image FROM bus_category WHERE id = $catid"; $data = $this->DB->db_auto_get_data($query); $this->DB->db_close(); if($data[0][image]!="") { $img = ''; } else { $img = 'Birchwood Construction
'; } echo $img; echo '
'; } /*! @function show_catheader @abstract Gaslight Media Toolbox® @discussion output the category name. @param catid The catid for the page. @result void */ function show_catheader($catid) { $this->DB->db_connect(); $query = "SELECT category FROM bus_category WHERE id = $catid"; $data = $this->DB->db_auto_get_data($query); $this->DB->db_close(); if($data[0][category]!="") { $header = $data[0][category]; } else { $header = ' '; } echo $header; } /** * get_seo_url: * grab category part of the search engine friendly url * looks at define for seo_url to see weather to use the seach engine friendly url's or not * * @param integer $id: * @param boolean $slash = 1 : to put a slash on end or not * @uses BASE_URL * @uses SEO_URL * @uses HOME_ID * @uses GLM_TEMPLATE::$php_ext * @uses GLM_TEMPLATE::set_name_url() * @uses GLM_TEMPLATE::get_category_name() * @uses GLM_TEMPLATE::get_base_url() * * @return string $url for page. * @access public **/ function get_seo_url( $id, $slash = 1 ) { if( $id == HOME_ID && $GLOBALS['GLM_SERVER_ID'] != 'devsys.gaslightmedia.com' ) { return( BASE_URL ); } elseif( $id == HOME_ID && $GLOBALS['GLM_SERVER_ID'] == 'devsys.gaslightmedia.com' ) { return( BASE_URL.'index.phtml' ); } if( SEO_URL ) { $url = BASE_URL; $top_parent = $this->get_top_parent( $id, $this->DB ); $url .= $this->get_base_url( $top_parent ); $url .= GLM_TEMPLATE::set_name_url( GLM_TEMPLATE::get_category_name( $id, "bus_category", $this->DB ) ); $url = strip_tags( $url ); $url = htmlspecialchars( $url ); if( $slash ) { $url .= '/'; } } else { $url = $this->get_base_url( $id ); if( $url ) { $url = BASE_URL.$url; $url .= $this->php_ext.'?catid='.$id; } else { $url = BASE_URL; } } return( $url ); } /** * make_ul_menu: create url list of categories * * @param integer $parent parent to start from * @uses GLM_DB::db_auto_get_data() * * @return string * @access public **/ function make_ul_menu( $parent = 0 ) { $qs = "SELECT id,category,intro FROM bus_category WHERE parent = $parent AND active = 't' ORDER BY pos"; $data = $this->DB->db_auto_get_data($qs); if(!is_array($data)) { return( false ); } else { foreach( $data as $key => $row ) { $url = $this->get_seo_url( $row['id'] ); $title = strip_tags(addslashes($row['intro'])); $return.='
  • catid == $row['id'] ) { $return .= ' id="current"'; } $return .= '>'.htmlentities($row['category']).""; if( $this->has_subs( $row['id'], &$this->DB ) && ( $this->is_sub_id( $this->catid, $row['id'], &$this->DB ) || $this->catid == $row['id'] ) ) { $ret2 = $this->make_ul_menu( $row['id'] ); $return.=$ret2; } } $return.="
  • "; if( $parent == 0 ) { return '"; } else { return '"; } } } function make_ul_menu2( $parent = 0 ) { $qs = "select id,category,intro from bus_category where parent = $parent and active = 't' order by pos"; $data = $this->DB->db_auto_get_data($qs); if(!is_array($data)) { return( false ); } else { foreach( $data as $key => $row ) { $url = $this->get_seo_url( $row['id'] ); $title = strip_tags(addslashes($row['intro'])); $return.='
  • catid == $row['id'] ) // { // $return .= ' id="current"'; // } $return .= '>'.htmlentities($row['category']).""; if( $this->has_subs( $row['id'], &$this->DB )) { $ret2 = $this->make_ul_menu( $row['id'] ); $return.=$ret2; } } $return.="
  • "; if( $parent == 0 ) { return '"; } else { return '"; } } } /** * get_top_parent:Get the highest level parent id (not 0 )for the category. * *

    NOTICE: This is ment to get the top level parent not the parent of the id given.

    * * @param integer $id: The catid for the page. * @param object $DB: obj * @uses GLM_TEMPLATE::get_top_parent() * @uses GLM_DB::db_auto_get_data() * * @return int $parent * @access public **/ function get_top_parent($id,&$DB) { if( $id == 0 ) { return( 0 ); } $qs = "select parent from bus_category where id = $id"; $parentrow = $DB->db_auto_get_data( $qs ); if($parentrow[0]['parent'] == 0) { return($id); } else { return( GLM_TEMPLATE::get_top_parent($parentrow[0]['parent'],&$DB) ); } } /** * get_base_url: generate the base of the url for the given category id * @param integer $id : * * @return string * @access public **/ function get_base_url( $id ) { if( $this->pages[$id] ) { $page = $this->pages[$id].'/'; } else { $page = $this->pages['default'].'/'; } if( $GLOBALS['GLM_SERVER_ID'] == 'ws1.gaslightmedia.com' && $this->catid == 1 ) { $page = ''; } return( $page ); } /** * setNameUrl: * @param string $name : * * @return string * @access public **/ function set_name_url( $name ) { $name = strtolower( trim( str_replace( " ","-",$name ) ) ); $name = str_replace( "/","",$name ); $name = str_replace( "#","",$name ); $name = str_replace( "&","",$name ); $name = str_replace( "amp;","",$name ); $name = str_replace( "?","",$name ); $name = str_replace( "'","",$name ); return( $name ); } /** * getCategoryName: * * @param integer $id: * @param string $table: * @param object &$DB : * @uses GLM_DB::db_auto_get_data() * * @return void * @access public **/ function get_category_name( $id, $table,&$DB ) { if( !is_numeric( $id ) ) { return( false ); } if($table == "class_category") { $category = "name"; } else { $category = "category"; } $query = "select $category from $table where id = $id"; $data = $DB->db_auto_get_data( $query ); if( is_array( $data ) ) { $add = '-'.$id; if( $data[0]['category'] ) { $category = $data[0]['category'].$add; } elseif( $data[0]['name']) { $category = $data[0]['name'].$add; } else { $category = $add; } return($category); } } /** * has_subs: * @param integer $catid: * @param object $DB: * * @uses GLM_TEMPLATE::$active_query * @uses GLM_DB::db_auto_get_data() * * @return string * @access public **/ function has_subs($catid,&$DB) { $query = "SELECT id FROM bus_category WHERE parent = $catid ".$this->active_query." ORDER BY pos"; $data = $DB->db_auto_get_data($query); if(is_array($data)) { return(true); } else { return(false); } } /** * is_sub_id:Check to see if catid is sub of category * * @param integer $catid: the catid looking at * @param integer $category: to see if it is in category * @param object $DB: Db object reference * @uses GLM_DB::db_auto_get_data() * * @return bool * @access public **/ function is_sub_id($catid,$category,&$DB) { if( !is_numeric( $catid ) ) { return( false ); } if($category==$catid) { return(true); } $query = "select id,parent from bus_category where id = $catid"; $data = $DB->db_auto_get_data($query); $parent = $data[0]['parent']; if($parent == 0) { return(false); } else { return( GLM_TEMPLATE::is_sub_id($parent,$category,&$DB) ); } } /*! @function get_menu_string @abstract Gaslight Media Toolbox® @discussion get categories for the phplayermenu @result string - The menu string */ function get_menu_string() { $query = "SELECT id,parent,category FROM bus_category ORDER BY parent,pos"; $data = $this->DB->db_auto_get_data($query); $newdata = $this->sortChilds($data); $string = $this->convertToThread($newdata,$newdata[0]); return($string); /* echo "
    ";
    		print_r($newdata);
    		echo "
    "; */ } function sortChilds($threads) { foreach($threads as $var=>$value) { $childs[$value[parent]][$value[id]] = $value; } return($childs); } function convertToThread($threads, $thread) { foreach($thread as $parent=>$value) { // get a unique page name far the link based on the category name $page_name = ereg_replace("[ '/?]","-",strip_tags($value['category'])); $this->wholeThread .= str_repeat(".",$this->threadCount); $this->wholeThread .= "|".$value[category]; // using .htaccess file for mod_rewrite to phtml pages $this->wholeThread .= "|".$page_name.$value[id].".htm"; $this->wholeThread .="\n"; if($threads[$parent]) { $this->threadCount++; $this->convertToThread($threads, $threads[$parent]); } } $this->threadCount--; return $this->wholeThread; } } ?>