%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/ |
Upload File : |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('test_method'))
{
function test_method($var = '')
{
return $var;
}
}
function editionprice($price){
$price = number_format((float)$price, 2, '.', '');
return $price;
}
function FormatPrice($OrderCountry,$Price){
////////////FOR US COUNTRY
$Price = number_format((float)$Price, 2, '.', '');
if ($OrderCountry == 1)
return "$".$Price;
else return "£".$Price;
}
function Currency2($OrderCountry=""){
////////////FOR US COUNTRY
if ($OrderCountry == 1)
return "$";
else return "USD";
}
function Currency($price=""){
$price = number_format((float)$price, 2, '.', '');
return "USD ".$price;
}
function CurrentUrl(){
$current_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
return $current_url;
}
function findDiscountPrice($Price,$discountpercentage=0){
$discountPrice = ($Price - ($Price * $discountpercentage / 100));
return $discountPrice;
}
function priceFormat($price){
$price = number_format((float)$price, 2, '.', '');
return $price;
}
function create_url($value)
{
if($value!=""){
//$cng=array('<', '>', '&', '{', '}', '*','$','1','2','3','4','5','6','7','8','9','0');
$cng=array('<', '>', '&', '[', ']', '{', '&','}', '(',',', ')', '*','$','?');
$value = str_replace("/","",$value);
$value= strtolower($value);
$value = str_replace($cng, '', trim($value));
$langth=strlen($value);
$value = str_replace(' ', '-', trim($value));
return $value;
}
return false;
}