retStr=htmlentities(html_entity_decode($str)); if($length!=0){ $this->strLength=strlen($str); $this->retStr=substr($this->retStr,0,$length); if($this->strLength > $length){ if(!$noDots){ $this->retStr=$this->retStr."..."; } } } if($wordwrap!=0){ $this->retStr=wordwrap($this->retStr,$wraplength,"
",1); } return ucfirst($this->retStr); } function strip($str="",$length=1){ $this->retStr=$str; $this->strLength=strlen($this->retStr); $this->strLength=$this->strLength-$length; $this->retStr=substr($this->retStr,0,$this->strLength); return ucfirst($this->retStr); } /* function to wrap a string as per the given length */ function wStr($str="",$length="",$replace="\n",$arg=1){ return wordwrap($str,$length,$replace,$arg); } /* function to return formatted date @param string $date */ function fDate($dateStr){ $ts = time() - strtotime(str_replace("-","/",$dateStr)); if($ts>31536000) $val = round($ts/31536000,0).' year'; else if($ts>2419200) $val = round($ts/2419200,0).' month'; else if($ts>604800) $val = round($ts/604800,0).' week'; else if($ts>86400) $val = round($ts/86400,0).' day'; else if($ts>3600) $val = round($ts/3600,0).' hour'; else if($ts>60) $val = round($ts/60,0).' minute'; else $val = $ts.' second'; if($val>1) $val .= 's'; return ucwords($val)." Ago"; } function getPages(){ $this->pageArray=array("Articles"=>"Articles","Blogs"=>"Blogs","Captions"=>"Captions","Community"=>"Community","Directory"=>"Directory","Player Search"=>"Player Search","Flash Games"=>"Flash Games","Interviews"=>"Interviews","Market Place"=>"Market Place"); return $this->pageArray; } function getMonth($month){ $this->returnMonth=""; $this->monthArray=array("01"=>"January","02"=>"February","03"=>"March","04"=>"April","05"=>"May","06"=>"June","07"=>"July","08"=>"August","09"=>"September","10"=>"October","11"=>"November","12"=>"December"); foreach($this->monthArray as $key=>$value){ if($key == $month){ $this->returnMonth=$value; } } return $this->returnMonth; } function getTimeZoneArray(){ $timeZoneArray = array( "Hawaii"=>"(GMT-10:00) Hawaii", "Alaska"=>"(GMT-09:00) Alaska", "Pacific Time (US & Canada)"=>"(GMT-08:00) Pacific Time (US & Canada)", "Arizona"=>"(GMT-07:00) Arizona", "Mountain Time (US & Canada)"=>"(GMT-07:00) Mountain Time (US & Canada)", "Central Time (US & Canada)"=>"(GMT-06:00) Central Time (US & Canada)", "Eastern Time (US & Canada)"=>"(GMT-05:00) Eastern Time (US & Canada)", "Indiana (East)"=>"(GMT-05:00) Indiana (East)", "International Date Line West"=>"(GMT-11:00) International Date Line West", "Midway Island"=>"(GMT-11:00) Midway Island", "Samoa"=>"(GMT-11:00) Samoa", "Hawaii"=>"(GMT-10:00) Hawaii", "Alaska"=>"(GMT-09:00) Alaska", "Pacific Time (US & Canada)"=>"(GMT-08:00) Pacific Time (US & Canada)", "Tijuana"=>"(GMT-08:00) Tijuana", "Arizona"=>"(GMT-07:00) Arizona", "Chihuahua"=>"(GMT-07:00) Chihuahua", "Mazatlan"=>"(GMT-07:00) Mazatlan", "Mountain Time (US & Canada)"=>"(GMT-07:00) Mountain Time (US & Canada)", "Central America"=>"(GMT-06:00) Central America", "Central Time (US & Canada)"=>"(GMT-06:00) Central Time (US & Canada)", "Guadalajara"=>"(GMT-06:00) Guadalajara", "Mexico City"=>"(GMT-06:00) Mexico City", "Monterrey"=>"(GMT-06:00) Monterrey", "Saskatchewan"=>"(GMT-06:00) Saskatchewan", "Bogota"=>"(GMT-05:00) Bogota", "Eastern Time (US & Canada)"=>"(GMT-05:00) Eastern Time (US & Canada)", "Indiana (East)"=>"(GMT-05:00) Indiana (East)", "Lima"=>"(GMT-05:00) Lima", "Quito"=>"(GMT-05:00) Quito", "Atlantic Time (Canada)"=>"(GMT-04:00) Atlantic Time (Canada)", "Caracas"=>"(GMT-04:00) Caracas", "La Paz"=>"(GMT-04:00) La Paz", "Santiago"=>"(GMT-04:00) Santiago", "Newfoundland"=>"(GMT-03:30) Newfoundland", "Brasilia"=>"(GMT-03:00) Brasilia", "Buenos Aires"=>"(GMT-03:00) Buenos Aires", "Georgetown"=>"(GMT-03:00) Georgetown", "Greenland"=>"(GMT-03:00) Greenland", "Mid-Atlantic"=>"(GMT-02:00) Mid-Atlantic", "Azores"=>"(GMT-01:00) Azores", "Cape Verde Is."=>"(GMT-01:00) Cape Verde Is.", "Casablanca"=>"(GMT+00:00) Casablanca", "Dublin"=>"(GMT+00:00) Dublin", "Edinburgh"=>"(GMT+00:00) Edinburgh", "Lisbon"=>"(GMT+00:00) Lisbon", "London"=>"(GMT+00:00) London", "Monrovia"=>"(GMT+00:00) Monrovia", "UTC"=>"(GMT+00:00) UTC", "Amsterdam"=>"(GMT+01:00) Amsterdam", "Belgrade"=>"(GMT+01:00) Belgrade", "Berlin"=>"(GMT+01:00) Berlin", "Bern"=>"(GMT+01:00) Bern", "Bratislava"=>"(GMT+01:00) Bratislava", "Brussels"=>"(GMT+01:00) Brussels", "Budapest"=>"(GMT+01:00) Budapest", "Copenhagen"=>"(GMT+01:00) Copenhagen", "Ljubljana"=>"(GMT+01:00) Ljubljana", "Madrid"=>"(GMT+01:00) Madrid", "Paris"=>"(GMT+01:00) Paris", "Prague"=>"(GMT+01:00) Prague", "Rome"=>"(GMT+01:00) Rome", "Sarajevo"=>"(GMT+01:00) Sarajevo", "Skopje"=>"(GMT+01:00) Skopje", "Stockholm"=>"(GMT+01:00) Stockholm", "Vienna"=>"(GMT+01:00) Vienna", "Warsaw"=>"(GMT+01:00) Warsaw", "West Central Africa"=>"(GMT+01:00) West Central Africa", "Zagreb"=>"(GMT+01:00) Zagreb", "Athens"=>"(GMT+02:00) Athens", "Bucharest"=>"(GMT+02:00) Bucharest", "Cairo"=>"(GMT+02:00) Cairo", "Harare"=>"(GMT+02:00) Harare", "Helsinki"=>"(GMT+02:00) Helsinki", "Istanbul"=>"(GMT+02:00) Istanbul", "Jerusalem"=>"(GMT+02:00) Jerusalem", "Kyev"=>"(GMT+02:00) Kyev", "Minsk"=>"(GMT+02:00) Minsk", "Pretoria"=>"(GMT+02:00) Pretoria", "Riga"=>"(GMT+02:00) Riga", "Sofia"=>"(GMT+02:00) Sofia", "Tallinn"=>"(GMT+02:00) Tallinn", "Vilnius"=>"(GMT+02:00) Vilnius", "Baghdad"=>"(GMT+03:00) Baghdad", "Kuwait"=>"(GMT+03:00) Kuwait", "Moscow"=>"(GMT+03:00) Moscow", "Nairobi"=>"(GMT+03:00) Nairobi", "Riyadh"=>"(GMT+03:00) Riyadh", "St. Petersburg"=>"(GMT+03:00) St. Petersburg", "Volgograd"=>"(GMT+03:00) Volgograd", "Tehran"=>"(GMT+03:30) Tehran", "Abu Dhabi"=>"(GMT+04:00) Abu Dhabi", "Baku"=>"(GMT+04:00) Baku", "Muscat"=>"(GMT+04:00) Muscat", "Tbilisi"=>"(GMT+04:00) Tbilisi", "Yerevan"=>"(GMT+04:00) Yerevan", "Kabul"=>"(GMT+04:30) Kabul", "Ekaterinburg"=>"(GMT+05:00) Ekaterinburg", "Islamabad"=>"(GMT+05:00) Islamabad", "Karachi"=>"(GMT+05:00) Karachi", "Tashkent"=>"(GMT+05:00) Tashkent", "Chennai"=>"(GMT+05:30) Chennai", "Kolkata"=>"(GMT+05:30) Kolkata", "Mumbai"=>"(GMT+05:30) Mumbai", "New Delhi"=>"(GMT+05:30) New Delhi", "Kathmandu"=>"(GMT+05:45) Kathmandu", "Almaty"=>"(GMT+06:00) Almaty", "Astana"=>"(GMT+06:00) Astana", "Dhaka"=>"(GMT+06:00) Dhaka", "Novosibirsk"=>"(GMT+06:00) Novosibirsk", "Sri Jayawardenepura"=>"(GMT+06:00) Sri Jayawardenepura", "Rangoon"=>"(GMT+06:30) Rangoon", "Bangkok"=>"(GMT+07:00) Bangkok", "Hanoi"=>"(GMT+07:00) Hanoi", "Jakarta"=>"(GMT+07:00) Jakarta", "Krasnoyarsk"=>"(GMT+07:00) Krasnoyarsk", "Beijing"=>"(GMT+08:00) Beijing", "Chongqing"=>"(GMT+08:00) Chongqing", "Hong Kong"=>"(GMT+08:00) Hong Kong", "Irkutsk"=>"(GMT+08:00) Irkutsk", "Kuala Lumpur"=>"(GMT+08:00) Kuala Lumpur", "Perth"=>"(GMT+08:00) Perth", "Singapore"=>"(GMT+08:00) Singapore", "Taipei"=>"(GMT+08:00) Taipei", "Ulaan Bataar"=>"(GMT+08:00) Ulaan Bataar", "Urumqi"=>"(GMT+08:00) Urumqi", "Osaka"=>"(GMT+09:00) Osaka", "Sapporo"=>"(GMT+09:00) Sapporo", "Seoul"=>"(GMT+09:00) Seoul", "Tokyo"=>"(GMT+09:00) Tokyo", "Yakutsk"=>"(GMT+09:00) Yakutsk", "Adelaide"=>"(GMT+09:30) Adelaide", "Darwin"=>"(GMT+09:30) Darwin", "Brisbane"=>"(GMT+10:00) Brisbane", "Canberra"=>"(GMT+10:00) Canberra", "Guam"=>"(GMT+10:00) Guam", "Hobart"=>"(GMT+10:00) Hobart", "Melbourne"=>"(GMT+10:00) Melbourne", "Port Moresby"=>"(GMT+10:00) Port Moresby", "Sydney"=>"(GMT+10:00) Sydney", "Vladivostok"=>"(GMT+10:00) Vladivostok", "Magadan"=>"(GMT+11:00) Magadan", "New Caledonia"=>"(GMT+11:00) New Caledonia", "Solomon Is."=>"(GMT+11:00) Solomon Is.", "Auckland"=>"(GMT+12:00) Auckland", "Fiji"=>"(GMT+12:00) Fiji", "Kamchatka"=>"(GMT+12:00) Kamchatka", "Marshall Is."=>"(GMT+12:00) Marshall Is.", "Wellington"=>"(GMT+12:00) Wellington", "Nuku'alofa"=>"(GMT+13:00) Nuku'alofa"); $this->timeZoneArray=$timeZoneArray; return $this->timeZoneArray; } function showRating($rating = null){ if(!defined('IMG_PATH')){ define('IMG_PATH','/img/'); } $this->rating = $rating; $this->ratingStr=""; for($i=0; $i<5; $i++){ if($this->rating>=1){ $this->ratingStr=$this->ratingStr.' '; $this->rating=$this->rating-1; }else if($this->rating>=0.5){ $this->ratingStr=$this->ratingStr.' '; $this->rating=$this->rating-1; }else if ($this->rating<0.5 && $this->rating>0){ $this->ratingStr=$this->ratingStr.' '; $this->rating=$this->rating-1; }else if($this->rating<=0){ $this->ratingStr=$this->ratingStr.' '; } } return $this->ratingStr; } /* function to return formatted date @param string $date */ function getDisplayDate($dateStr,$intNum=0){ $ts = time() - strtotime(str_replace("-","/",$dateStr)); if($ts>31536000) $val = round($ts/31536000,0).' year'; else if($ts>2419200) $val = round($ts/2419200,0).' month'; else if($ts>604800) $val = round($ts/604800,0).' week'; else if($ts>86400) $val = round($ts/86400,0).' day'; else if($ts>3600) $val = round($ts/3600,0).' hour'; else if($ts>60) $val = round($ts/60,0).' minute'; else $val = $ts.' second'; if($val>1) $val .= 's'; return ucwords($val)." Ago"; /* $dateArray1=explode(" ",$dateStr); $dateArray=explode("-",$dateArray1[0]); if($intNum!=0){ $strDate=$dateArray[1]."-".$dateArray[2]."-".$dateArray[0]." at ".$dateArray1[1]; }else{ $strDate=$dateArray[1]."-".$dateArray[2]."-".$dateArray[0]; } return $strDate; */ } /* function to take user rating @param $linkURL string ajax url @param $id int id of the entity to be rated @param $confirmMessage string javascript confirm if set else no confirm @param $updateDiv string div to be updated after ajax call return $ratingString string */ function doRating($linkURL="",$id="",$confirmMessage="",$updateDiv=""){ $counter = 1; $this->ratingString=""; while($counter <= 5){ $imageStr = $this->Html->image('_rate_c.gif',array('border'=>'0','class'=>'star','onmouseover'=>'selstar('.$counter.','.$id.');','onmouseout'=>'remstar('.$counter.','.$id.');','title'=>'Rate '.$counter,'Alt'=>'Rate '.$counter,'id'=>'i_'.$id.'_'.$counter)); $this->ratingString=$this->ratingString.$this->Ajax->link($imageStr,$linkURL.'/'.$counter,array('url'=>$linkURL.'/'.$counter,'update'=>$updateDiv),null,false)." "; $counter++; } return $this->ratingString; } } ?> SORRY PAGE NOT FOUND

SORRY !! 404 error: File not found

The web address you enter is not a functioning page of our site


You will be automatically redirected on index page in few minutes.