• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Post your ctrl+v

switch($pageURL) {

case $rmvPHP :
$pageName = $ucFN;
$title = SITE_TITLENAME.' - '.$pageName;
$metaDesc = 'put page description here';
$metaKeys = 'put, comma, seperated, keywords, here';
ob_start();
if ($pageColumn == 2) {
include(SITE_PATH.'template/subnav.php');
echo '<div id="right-clmn" class="float-left">';
} elseif ($pageColumn == 3) {
echo '<div id="mid-clmn">';
}
$pageContent = include(SITE_PATH.'content/'.$file);
echo '<div class="clearfix"></div>';
if ($pageColumn == 2 || $pageColumn == 3) {
echo '</div>';
}
$pageContent = ob_get_contents();
ob_end_clean();
$pageFile = $file;
$defaultTitle = TRUE;
break;

}
 
public function str2ascii($convertEmail) {

if ($convertEmail == '') {
$convertEmail = CONTACT_EMAIL;
}

$string = 'mailto:'.$convertEmail;
$ascii = array( );
for( $i = 0; $i < strlen( $string ); $i++ ) $ascii[ $i ] = sprintf( "&#%d;", ord( $string{$i} ) );

return implode( null, $ascii );

}
 
public function html_fix($data) {

$body = htmlentities("$data",ENT_COMPAT,ISO-8859-15);

$special_char = array(
128 => "&euro;", // Euro symbol
133 => "&hellip;", // ellipses
8226 => "″", // double prime
8216 => "'", // left single quote
145 => "'", // left single quote
8217 => "'", // right single quote
146 => "'", // right single quote
8220 => """, // left double quote
147 => """, // left double quote
8221 => """, // right double quote
148 => """, // right double quote
8226 => "•", // bullet
149 => "•", // bullet
8211 => "–", // em dash
150 => "–", // em dash
8212 => "—", // em dash
151 => "—", // em dash
8482 => "™", // trademark
153 => "™", // trademark
169 => "&copy;", // copyright mark
174 => "&reg;", // registration mark
"'" => "'", // fix single quote to not be ascii
""" => "\"", // fix double quote to not be ascii
"&lt;" => "<", // fix left carrot to not be ascii
"&gt;" => ">" // fix right carrot to not be ascii
);

foreach ($special_char as $org_char => $new_char) {
$body = ereg_replace($org_char, $new_char, $body);
}

$body = stripslashes($body);

return $body;

}
 
Back
Top