/** * Function fnRSSUpdates to Update Rss * @uses clsUtil::fnMarmik Uses fnGetProfilePhotoofUser function of user package to Get Profile Photo of User * @access public * @param string $strQue * @return array */ function _fnHome() { $strGetJsString = clsUtil::fnGetJsSrcString($this->strAction); $arrContent['JS'] = $strGetJsString; $arrContent['CONTENT'] = $this->hdlTpl->get(); return clsUtil::fnProcessStructure($arrContent); }
/** * Function fnProcessRight to Process Right panel for Global Template file * @access public * @param object $hdlTpl * */ function fnProcessRight($hdlTpl) { //PROCESS CONTENT FROM RIGHT COLUMN $hdlRTpl = clsUtil::fnTemplateClass($this->strModule); $hdlRTpl->loadTemplateFile("_right.tpl.html", 1, 1); $hdlRTpl->setVariable("test_variable", "right"); $strRightContent = $hdlRTpl->get(); //PRINT RIGHT COLUM HTNL CONTENT ON THE GLOBAL TPL $hdlTpl->touchBlock("RIGHT_COLUMN"); $hdlTpl->setVariable("RIGHT", $strRightContent); $hdlTpl->parse("RIGHT_COLUMN"); }
<?php date_default_timezone_set('America/Caracas'); include_once "../clases/clase_docente.php"; include_once "../clases/clase_diagnostico.php"; ob_end_clean(); require_once "../libreria/fpdf/clsFpdf.php"; require_once "../clases/clase_bitacora.php"; require_once '../libreria/utilidades.php'; require_once '../libreria/uuid.php'; $lobjPdf = new clsFpdf(); $lobjBitacora = new clsBitacora(); $lobjUtil = new clsUtil(); $ObjDocente = new clsDocente(); $ObjDiagnostico = new clsDiagnostico(); $lobjPdf->AliasNbPages(); $lobjPdf->codigo = UUID::v4(); $lobjPdf->AddPage("P", "Letter"); $lcReal_ip = $lobjUtil->get_real_ip(); $ldFecha = date('Y-m-d h:m'); $lobjBitacora->set_Datos($_SERVER['HTTP_REFERER'], $ldFecha, $lcReal_ip, 'Reporte', '-', 'id_diagnostico', '-', $lobjPdf->codigo, $_GET['id_diagnostico'], $_SESSION['usuario'], 'listado_docentes_diagnostico'); //envia los datos a la clase bitacora $lobjBitacora->registrar_bitacora(); //registra los datos en la tabla tbitacora. $ObjDocente->set_Diagnostico($_GET['id_diagnostico']); $ObjDiagnostico->set_Diagnostico($_GET['id_diagnostico']); $row_detalle = $ObjDocente->listado_docente_diagnostico(); $row_consulta = $ObjDiagnostico->consultar_diagnostico(); $lobjPdf->SetFont("arial", "B", 12); $lobjPdf->Ln(10); $lobjPdf->Cell(0, 6, utf8_decode("DOCENTES POR TIPO DE CONDICION VISUAL"), 0, 1, "C");
$strAction = trim($_GET["action"]); $strAction = $strAction == "" ? "home" : $strAction; /** * BUILD CLASSNAME FROM ACTIONS ARRAY */ list($strModuleName, $strClassName) = explode(":", $_ARRMODULE[$strAction]["module"]); $strModuleClass = "cls" . ucfirst($strModuleName); $strClassName = "cls" . ucfirst($strClassName); /** * INCLUDE SECURITY CHECK */ require_once "inc/security.inc.php"; /** * TEMPLATE OBJECT */ $hdlTpl = (int) $_ARRMODULE[$strAction]["tpl"] ? clsUtil::fnTemplateClass($strModuleName) : NULL; /** * INCLUDE CONTROLlER CLASSES */ require_once DOCUMENT_ROOT . "/modules/{$strModuleName}/{$strModuleClass}.php"; require_once DOCUMENT_ROOT . "/modules/{$strModuleName}/{$strClassName}.php"; /** * BUILD OBJECT FOR VIEW/TEMPLATE */ $hdlModule = new $strClassName($hdlDb, $hdlTpl, $strModuleName, $strAction); /** * RENDER HTML */ print $hdlModule->PAGEDATA; /** * DISCARD DATABAES CONNECTION
function fnCreateShortUrl($strLongUrl, $strProvider = "bitly") { ///var/www/vhosts/justmeans.com/httpdocs/inc/config.inc.php //require_once 'zend/Json.php'; switch ($strProvider) { case "bitly": $strProcessedApiUrl = sprintf(BITLY_URL, urlencode($strLongUrl), BITLY_USER, BITLY_API_KEY); $arrValues = @file($strProcessedApiUrl); /*echo "<pre>"; print_r ($arrValues); die;*/ if (is_array($arrValues)) { if (count($arrValues)) { foreach ($arrValues as $intKey => $strPartString) { $strString .= $strPartString; } } } else { return false; } if (trim($strString) == "") { return false; } else { $arrShortUrl = clsUtil::fnJM_Json_Decode(trim($strString)); if (is_array($arrShortUrl)) { if (count($arrShortUrl)) { if ((int) $arrShortUrl['errorCode'] == 0) { $strShortUrl['url'] = $arrShortUrl['results'][$strLongUrl]['shortUrl']; $strShortUrl['hash'] = $arrShortUrl['results'][$strLongUrl]['userHash']; return $strShortUrl['url']; } else { return false; } } else { return false; } } else { return false; } } break; } return false; }
protected function fnLoadSettings($arrParams) { $this->hdlDb = $arrParams[0]; $this->hdlTpl = $arrParams[1]; $this->strModule = $arrParams[2]; $this->strAction = $arrParams[3]; $this->G = clsUtil::fnGETParams(); //FILTER VALUES FROM GET $this->P = clsUtil::fnPOSTParams(); //FILTER VALUES FROM POST $this->R = clsUtil::fnREQUESTParams(); # LOAD TEMPLATE FILE if(!is_null($this->hdlTpl)) { $this->hdlTpl->loadTemplateFile($this->strAction.".tpl.html",1,1); } //SEO MANAGEMENT $this->META_DESC = ''; $this->META_KEYWORDS = ''; $this->META_ROBOTS = ''; //INDEX,FOLLOW //LAYOUT MANAGEMENT $this->CSS = true; $this->JS = true; $this->GLOBALTPL = "_global"; //LEFT n RIGHT PANEL MANAGEMENT $this->LEFT_PANEL = false; $this->RIGHT_PANEL = false; $this->GLOBAL_PANEL = false; $this->IS_DEFAULT_LEFT = false; $this->IS_DEFAULT_RIGHT = false; $this->GET_LEFT_FROM_OTH_MODULE = ""; //GET LEFT PPANEL FROM OTHER MODULE $this->GET_RIGHT_FROM_OTH_MODULE = ""; //GET RIGHT PANEL FROM OTHER MODULE $this->BREADCRUMB_SEPERATOR = " > "; $this->THEME = "default"; }