nsCssOriginal = self::$urlItemPlugin."css/captions-original.css"; } } ?>gContent(){ $filepath = GlobalsUniteRev::$pathComponent."release_log.txt"; if(file_exists($filepath) == false) return("$filepath file not found"); $content = file_get_contents($filepath); return($content); } /** * * get slides numbers by id's */ public static function getSlidesNumbersByIDs($arrSlides){ $arrSlideNumbers = array(); foreach($arrSlides as $number=>$slide){ $slideID = $slide["id"]; $arrSlideNumbers[$slideID] = ($number+1); } return($arrSlideNumbers); } } ?>omData($data){ $slideID = $data["itemID"]; $this->deleteSlide($slideID); } /** * * add slide from data */ public function addSlideFromData($data){ $sliderID = $data["sliderid"]; $arrParams = array(); $arrParams["published"] = true; $arrParams["title"] = JText::_("COM_UNITEREVOLUTION_SLIDE"); $slideID = $this->addNewSlide($sliderID,$arrParams); return($slideID); } /** * duplicate slide from data */ public function duplicateSlideFromData($data){ $slideID = $data["itemID"]; $this->duplicateSlide($slideID); } } ?>; } /** * * echo json ajax response, without message, only data */ public static function ajaxResponseData($arrData){ if(gettype($arrData) == "string") $arrData = array("data"=>$arrData); self::ajaxResponse(true,"",$arrData); } /** * * echo json ajax response */ public static function ajaxResponseError($message,$arrData = null){ self::ajaxResponse(false,$message,$arrData,true); } /** * echo ajax success response */ public static function ajaxResponseSuccess($message="",$arrData = null){ self::ajaxResponse(true,$message,$arrData,true); } /** * echo ajax success response */ public static function ajaxResponseSuccessRedirect($message,$url){ $arrData = array("is_redirect"=>true,"redirect_url"=>$url); self::ajaxResponse(true,$message,$arrData,true); } } ?>nput->get($name,$default,$filter); return($var); } /** * * clear params array from client side */ public static function clearParamsArray($arrParams){ $arrNew = array(); foreach($arrParams as $key=>$value){ $key = str_replace("jform_params_", "", $key); $key = str_replace("jform_", "", $key); $arrNew[$key] = $value; } return($arrNew); } } ?>* * escape data to avoid sql errors and injections. */ public function escape($string){ $newString = $this->jdb->escape($string); return($newString); } } ?>ext = $info["extension"]; $mimeType = "image/$ext"; } header("Content-Type: $mimeType"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Content-Length: $filesize"); echo $contents; exit(); } /** * * validate type * @param unknown_type $type */ public function validateType($type){ switch($type){ case self::TYPE_EXACT: case self::TYPE_EXACT_TOP: break; default: $this->throwError("Wrong image type: ".$type); break; } } } ?> $this->userTemplate = $tpl; $this->displayMasterTemplate(); } } ?> $this->disabled = $arrState["disabled"]; $this->hidden = $arrState["hidden"]; } } } ?> $childStates["found"] = true; } return($childStates); } /** * get array for js output */ public static function getArrayForJsOutput(){ return(self::$arrIndexParent); } } ?> $arrClasses[] = $class; } return($arrClasses); } } ?>uccessMessageText); self::addCustomButton($buttonID,$buttonText,$buttonIcon); } } ?>.'toolbar.class.php'; ?>teRev::COMPONENT_NAME; ?>