$this->strtolower_pl($value); break; case 'force_empty': $value=''; break; case 'time_ago': $value=$CS->STRING->time_ago($value); break; case 'time_ago_tip': $value='FORM->tip($value==0 ? '':$value).'>'.$CS->STRING->time_ago($value).''; break; case 'day_ago': $value=$CS->STRING->day_ago($value); break; case 'price': $value=str_replace('.',',',$value); break; case 'email': if(!empty($value)) $value=''.$CS->STRING->sfo($value).''; break; case 'link': if(!empty($value)) $value=''.$CS->STRING->sfo($value).''; break; case 'info': $value='FORM->tip($value).'>'.$CS->IMAGE->icon('form/info.gif').''; break; case 'info_link': $value='FORM->tip($value).'>'.$CS->IMAGE->icon('form/info.gif').''; break; } return $value; } function apply_write_addon($addon, $value) { global $CSA; switch($addon) { case 'to_upper': $value=$this->strtoupper_pl($value); break; case 'to_lower': $value=$this->strtolower_pl($value); break; case 'price': $value=str_replace(',','.',$value); break; case 'md5': if(!empty($value)) $value=md5($value); else $skip=1; break; case 'pass_trans': if(!empty($value)) $value=$CSA->LAY->transform_pass($value); else $skip=1; break; } return array('skip'=>$skip, 'value'=>$value); } function punycode($txt, $reverse=false) { require_once($this->_DIR.'/idn2punycode.php'); $IDN=new idn_convert(); return ($reverse==false ? $IDN->encode($txt) : $IDN->decode($txt)); } /** * Change BBCodes to HTML in text * @param string $text * @return string */ function bbcode($text) { require_once($this->_DIR.'/parserBB.php'); $parser = new parserBB(); $text = htmlspecialchars_decode($parser->bb_to_html($text)); return $text; } function crypt($input, $crypt_key=false) { return $this->encrypt($input, $crypt_key); } function encrypt($input, $crypt_key=false) { $use_hash=false; require_once($this->_DIR.'/blowfish/crypt.class.php'); global $CRYPT; global $CONF; $CRYPT =& Crypt_Blowfish::factory('cbc'); if(PEAR::isError($bf)) die($CRYPT->getMessage()); $key = (strlen($crypt_key)>0 ? $crypt_key:( strlen($CONF->SITE_NAME)>0 ? $CONF->SITE_NAME : 'kfx_cms_crypt') ); $CRYPT->setKey($key, 'a1-b2=c3'); return ($use_hash==true ? '##':'').base64_encode(trim($CRYPT->encrypt($input))).($use_hash==true ? '##':''); } function decrypt($input, $crypt_key=false) { require_once($this->_DIR.'/blowfish/crypt.class.php'); global $CRYPT; global $CONF; $CRYPT =& Crypt_Blowfish::factory('cbc'); if(PEAR::isError($bf)) die($CRYPT->getMessage()); $key = (strlen($crypt_key)>0 ? $crypt_key:( strlen($CONF->SITE_NAME)>0 ? $CONF->SITE_NAME : 'kfx_cms_crypt') ); $CRYPT->setKey($key, 'a1-b2=c3'); $use_hash=(substr($input,2)=='##' && substr($input,0,-2)=='##' ? true:false); $decrypted = $CRYPT->decrypt(base64_decode($use_hash==true ? substr(substr($input,2),0,-2):$input)); if(PEAR::isError($decrypted)) die($decrypted->getMessage()); return trim($decrypted); } function hide($t) { return $this->scramble_base64($t); } function scramble_base64($t) { return @base64_encode(str_replace( array('M','9','V','6','N','U','W','R','2'), array('_','%','*','^','!','|','$',',','@'), base64_encode($t) )); } function show($t) { return $this->descramble_base64($t); } function descramble_base64($t) { return @base64_decode(str_replace( array('_','%','*','^','!','|','$',',','@'), array('M','9','V','6','N','U','W','R','2'), base64_decode($t) )); } } $this->STRING = new cs_string(); $this->STRING->_PATH = C_PATH.'/'.cs_string; $this->STRING->PATH = C_PATH.'/'.cs_string; $this->STRING->_DIR = C_DIR.'/'.cs_string; $this->STRING->DIR = C_DIR.'/'.cs_string; ?>
Fatal error: Call to a member function modNAMEnoslash() on a non-object in /classes/route.php on line 17