function renderBegin() { if (isset($_GET[$this->id . '__open'])) { $this->open = $_GET[$this->id . '__open'] == 'true'; } if ($this->open) { $this->options['load_on_demand'] = false; } if (!$this->options['load_on_demand']) { $this->setAjaxStubContext(); } $w = $h = ''; if ($this->options['has_width']) { $w = 'width: ' . $this->options['dimensions']['width'] . 'px'; } if ($this->options['has_height']) { $h = 'height: ' . $this->options['dimensions']['height'] . 'px'; } $style = $this->options['has_width'] || $this->options['has_height'] ? 'style="' . implode(';', array($w, $h)) . ';"' : ''; $toret = '<div id="' . $this->id . '" class="collapsible ' . $this->getDefaultOpenClass() . '" ' . $style . '>'; $toret .= '<h3 class="title"><a id="link__' . $this->id . '" href="' . str_replace('&', '&', KT_addReplaceParam(KT_getFullUri(), $this->id . '__open', $this->open ? 'false' : 'true')) . '">' . $this->title . '</a></h3>'; $toret .= '<div id="' . $this->id . '-body" class="collapsibleBody"> <div class="collapsibleContent">'; if (!$this->options['load_on_demand']) { $this->prevDir = getcwd(); chdir(dirname(realpath($this->file_name))); } return $toret; }
function Execute() { if (isset($_POST[$this->orderPostField])) { $permArr = array(); $arr = explode(',', $_POST[$this->orderPostField]); if (count($arr) > 0) { foreach ($arr as $key => $val) { $arrParts = explode('|', $val); if (count($arrParts) == 3 && $arrParts[1] != $arrParts[2]) { $permArr[] = $arrParts; } } $n = count($permArr); if ($n > 0) { $sql = 'SELECT MAX(' . KT_escapeFieldName($this->orderField) . ') +1 AS kt_tor_max FROM ' . $this->tableName; $rs = $this->connection->Execute($sql) or die("Internal Error. Table Order:<br/>\n" . $this->connection->ErrorMsg()); $max = (int) $rs->Fields('kt_tor_max'); for ($i = 0; $i < count($permArr); $i++) { $this->UpdateOrder($permArr[$i][0], $permArr[$i][1] + $max); } for ($i = 0; $i < count($permArr); $i++) { $this->UpdateOrder($permArr[$i][0], $permArr[$i][2]); } } } if ($this->doRedirectOnExec) { KT_redir(KT_getFullUri()); } } }
function getSortLink($column) { $sorter_reference = "sorter_" . $this->sorterName; $value = $this->getCurrentSort(); $paramVal = $column; if ($value == $column) { $paramVal .= " DESC"; } $url = KT_addReplaceParam(KT_getFullUri(), $sorter_reference, $paramVal); return $url; }
* ADOBE SYSTEMS INCORPORATED * Copyright 2007 Adobe Systems Incorporated * All Rights Reserved * * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the * terms of the Adobe license agreement accompanying it. If you have received this file from a * source other than Adobe, then your use, modification, or distribution of it requires the prior * written permission of Adobe. */ /* Copyright (c) InterAKT Online 2000-2006. All rights reserved. */ if (isset($_GET['KT_back'])) { require_once dirname(realpath(__FILE__)) . '/../common/KT_common.php'; KT_session_start(); $tmp = KT_addReplaceParam(KT_getFullUri(), 'KT_back'); if (isset($_SERVER['HTTP_REFERER'])) { $backURL = $_SERVER['HTTP_REFERER']; $backURL = KT_addReplaceParam($backURL, '/^totalRows_.*$/i'); KT_SessionKtBack($backURL); } if (isset($_POST['KT_Delete1'])) { echo '<html><head></head><body><form action="' . $tmp . '" method="POST" name="KT_backForm">'; foreach ($_POST as $key => $value) { if ($key == 'KT_Delete1' || strpos($key, 'kt_pk_') === 0) { if (get_magic_quotes_gpc()) { $value = stripslashes($value); } echo '<input type="hidden" name="' . $key . '" value="' . KT_escapeAttribute($value) . '" />'; } }
function getScripts() { $includedpath = $this->relpath; if (isset($GLOBALS['KT_REL_PATH'])) { $includedpath = $GLOBALS['KT_REL_PATH'] . $includedpath; } $url = KT_addReplaceParam(KT_getFullUri(), '/^totalRows_.*$/i'); $flashURL = KT_addReplaceParam($url, 'isFlash'); $flashURL = KT_addReplaceParam($flashURL, session_name(), session_id()); $ret = ''; $ret .= '<script src="' . $this->relpath . 'includes/tng/pub/flashembed.js" type="text/javascript" language="javascript"></script>' . "\n"; $ret .= '<script type="text/javascript"> //this is the unique instance of the multiple file upload object myupload = new tNG_FlashUpload(\'' . $includedpath . '\',\'uploadComponent\', \'progressComponent\', \'myupload\'); myupload.setColors(\'' . $this->barColor . '\',\'' . $this->textColor . '\',\'' . $this->borderColor . '\'); myupload.initialize( \'' . KT_addReplaceParam($flashURL, 'isFlash', 1) . '\', \'' . KT_getResource('UPLOAD', 'tNG') . '\', \'' . $this->maxSize . '\', \'' . $this->maxNumber . '\', \'' . $this->existentNumber . '\', \'' . $this->allowedExtensions . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_SIZE_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_FILES_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_EMPTY_FILE', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_SKIPPING', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_COMPLETE_MSG', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_BATCH', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_SINGLE', 'tNG')) . '\'); KT_self_url = "' . KT_addReplaceParam($url, 'isFlash') . '"; </script>' . "\n"; return $ret; }
function checkBoundries() { if (isset($_GET['KT_az'])) { $cond = KT_getRealValue("GET", "KT_az"); $do_redirect = false; if ($this->linkRenderType != 2) { if (!in_array($cond, $this->arrLetters)) { $do_redirect = true; } } else { $allowed = range('A', 'Z'); if ($this->useNumbers) { $allowed[] = "0_9"; } $allowed[] = "other"; $allowed[] = "all"; if (!in_array($cond, $allowed)) { $do_redirect = true; } } if ($do_redirect) { $KT_url = KT_getFullUri(); $KT_url = KT_addReplaceParam($KT_url, 'KT_az'); KT_redir($KT_url); } } }
function getShowAllLink() { $show_all_reference = "show_all_" . $this->navName; if (isset($_GET[$show_all_reference])) { $url = KT_addReplaceParam(KT_getFullUri(), $show_all_reference); } else { $url = KT_addReplaceParam(KT_getFullUri(), $show_all_reference, "1"); } $url = KT_addReplaceParam($url, 'pageNum_' . $this->rsName); $url = KT_addReplaceParam($url, 'totalRows_' . $this->rsName); return $url; }
function renderJavascriptStubs() { $toret = ' <script type="text/javascript">' . "\n"; $toret .= '<!--' . "\n"; if (!isset($GLOBALS['stub_loader'])) { $toret .= ' var StubFilesLoaded = false; function loadStubFiles(callback, args) { var StubJSLoader = new Kore.JSLoader(); StubJSLoader.addFile("includes/yui/yahoo/yahoo.js"); StubJSLoader.addFile("includes/yui/event/event.js"); StubJSLoader.addFile("includes/yui/connection/connection.js"); StubJSLoader.addFile("includes/kore/js/error.js"); StubJSLoader.addFile("includes/kore/js/dataprovider/transporter.js"); StubJSLoader.addFile("includes/kore/js/dataprovider/dataprovider.js"); StubJSLoader.addFile("includes/kore/js/dataprovider/jsonprovider.js"); StubJSLoader.loadFiles(function() { StubFilesLoaded = true; callback.apply(null, args); }); }'; $GLOBALS['stub_loader'] = true; } foreach ($this->exportedMethods as $m) { $obj_prefix1 = ''; $obj_prefix2 = ''; if ($m['object']) { $obj_prefix1 = $m['object'] . '_'; $obj_prefix2 = $m['object']; } $toret .= ' ' . $obj_prefix1 . $m['method'] . ' = function() { if(!StubFilesLoaded) { loadStubFiles(' . $obj_prefix1 . $m['method'] . ', arguments);return;}; var params = arguments; var functor = params[params.length-1]; var postOptions; var hash = { "AjaxServiceCall": "true", "ServiceObject" : "' . $obj_prefix2 . '", "ServiceMethod" : "' . $m['method'] . '" }; for (var i = 0; i < params.length-1; i++) { var sPar = params[i]; if((typeof params[i] == "string") && /^\\{[^\\}]+\\}$/.test(params[i])){ try { eval("var tmpObj = " + params[i]); Object.extend(hash, tmpObj); } catch(e) {}; } else { if (params[i].toString() == "POST-DATA") { postOptions = {method: "POST", postData: params[i+1]}; break; } else { hash["params_"+i] = params[i]; } }; } var url; '; if (isset($GLOBALS["stub_context"])) { // this file is included as the opened region in a widget $toret .= 'url = "' . KT_addReplaceParam($GLOBALS["stub_context"], "KT_ajax_request", "true") . '"; '; } else { if (KT_is_ajax_request()) { // this page is called from a widget to output content for a region $toret .= 'url = "' . KT_getFullUri() . '"; '; } else { $toret .= ' var L = window.location; url = L.protocol + "//" + L.host + L.pathname + L.search; if(typeof window.$ctrl != "undefined") { // on a master page var hashParams = window.location.hash.replace(/^#/, ""); if(hashParams){ url = window.$app_path + "?" + hashParams; } '; if (isset($GLOBALS['me'])) { $toret .= ' var currentPanel = "' . $GLOBALS['me']->id . '"; url = url.replace(/[^\\?&]*__state=[^&]*/i, ""); if ( !(new RegExp(currentPanel + "__state=","i").test(hashParams)) ) { url += (/\\?/.test(url)? "&" : "?"); url += currentPanel + "__state=' . $GLOBALS['me']->currentState . '"; } url = url.replace(/\\?&/i, "?"); '; } $toret .= ' } url += (/\\?/.test(url)? "&" : "?"); url += "KT_ajax_request=true"; '; } } $toret .= ' var _querry = $H(hash).toQueryString(); if(_querry){ url += (/\\?/.test(url)? "&" : "?"); } url += _querry; var provider; if (typeof postOptions == "undefined") { provider = new Kore.JsonProvider(url); } else { provider = new Kore.JsonProvider(url, postOptions); } provider.updateEvent.subscribe(functor, provider, true); provider.getContent(); }'; } $toret .= ' //--> </script> '; return $toret; }
/** * Main method of the class. grant the access to the page or make the redirect page setted in control panel * @return mix null or error object * @access public */ function Execute() { tNG_cookieLogin($this->connection); // access denied defaults to "redirect_failed" specified in Login Config $grantAccess = false; $redirect_page = $GLOBALS['tNG_login_config']['redirect_failed']; tNG_clearSessionVars(); if (isset($_SESSION['kt_login_user'])) { if (count($this->levels) > 0) { if (isset($_SESSION['kt_login_level'])) { if (in_array($_SESSION['kt_login_level'], $this->levels)) { $grantAccess = true; } else { // acceess denied. check for level default redirect pages if (is_array($GLOBALS['tNG_login_config_redirect_failed']) && array_key_exists($_SESSION['kt_login_level'], $GLOBALS['tNG_login_config_redirect_failed']) and $GLOBALS['tNG_login_config_redirect_failed'][$_SESSION['kt_login_level']] != "") { $redirect_page = $GLOBALS['tNG_login_config_redirect_failed'][$_SESSION['kt_login_level']]; } else { // the failure page for the current user level is not defined.. so fall back to default $redirect_page = $GLOBALS['tNG_login_config']['redirect_failed']; } } } // if levels are required, and the current user doesn't have one.. access is denied } else { // no levels are required for this page access // the user is logged in, so grant the access $grantAccess = true; } } if (!$grantAccess) { // save the accessed page into a session for later use $_SESSION['KT_denied_pageuri'] = KT_getFullUri(); KT_setSessionVar('KT_denied_pageuri'); $_SESSION['KT_denied_pagelevels'] = $this->levels; KT_setSessionVar('KT_denied_pagelevels'); if (isset($_SESSION['KT_max_tries_error'])) { $redirect_page = KT_addReplaceParam($redirect_page, 'info', 'MAXTRIES'); } else { if (isset($_SESSION['KT_account_expire_error'])) { $redirect_page = KT_addReplaceParam($redirect_page, 'info', 'ACCOUNT_EXPIRE'); } else { $redirect_page = KT_addReplaceParam($redirect_page, 'info', 'DENIED'); } } KT_redir($this->relPath . $redirect_page); } else { // clear the sessions used for redirect ?? } }
/** * getter. get the URL for show filter / reset filter link * @return string link; * @access public */ function getFilterLink() { if ($this->isFilterVisible()) { $url = KT_addReplaceParam(KT_getFullUri(), 'show_filter_' . $this->listName); $url = KT_addReplaceParam($url, 'reset_filter_' . $this->listName, "1"); } else { $url = KT_addReplaceParam(KT_getFullUri(), 'reset_filter_' . $this->listName); $url = KT_addReplaceParam($url, 'show_filter_' . $this->listName, "1"); } return $url; }
/** * getter. get the url for logout * @return string * @access public */ function getLogoutLink() { return KT_addReplaceParam(KT_getFullUri(), 'KT_logout_now', 'true'); }
function checkBoundries() { if (isset($_GET[$this->getVarName])) { $needle = KT_getRealValue("GET", $this->getVarName); if (!in_array($needle, $this->arrCategory)) { $KT_url = KT_getFullUri(); $KT_url = KT_addReplaceParam($KT_url, $this->getVarName); KT_redir($KT_url); } } }
/** * Prepare the hash values and store it in the session; Return the calculated link. * @return string url for download the file * @access public */ function getDownloadLink() { $this->preparedFolder = $this->folder; //security $fullFolderPath = KT_realpath($this->preparedFolder, true); $fullFilePath = KT_DynamicData($this->renameRule, null); $fullFilePath = KT_realpath($this->preparedFolder . $fullFilePath, true); if (substr($fullFilePath, 0, strlen($fullFolderPath)) != $fullFolderPath) { $this->setError(new tNG_error("FOLDER_DEL_SECURITY_ERROR", array(), array($fullFolderPath, $fullFilePath))); return $this->relPath . 'includes/tng/pub/tNG_download4.php'; } $url = ''; if (!isset($_SESSION['tng_download'])) { $_SESSION['tng_download'] = array(); } if (!isset($_SESSION['tng_download'][$this->reference])) { $_SESSION['tng_download'][$this->reference] = array(); } // sets the common values; if (!$this->isSetted) { $_SESSION['tng_download'][$this->reference]['properties'] = array(); $_SESSION['tng_download'][$this->reference]['properties']['time'] = time(); $_SESSION['tng_download'][$this->reference]['properties']['table'] = $this->table; if (isset($this->pk['field']) && isset($this->pk['type'])) { $_SESSION['tng_download'][$this->reference]['properties']['pk_c'] = array('field' => $this->pk['field'], 'type' => $this->pk['type']); } else { $_SESSION['tng_download'][$this->reference]['properties']['pk_c'] = array(); } $_SESSION['tng_download'][$this->reference]['properties']['counterField'] = $this->counterField; $_SESSION['tng_download'][$this->reference]['properties']['tableMtm'] = $this->tableMtm; if (isset($this->pkMtm['field']) && isset($this->pkMtm['type'])) { $_SESSION['tng_download'][$this->reference]['properties']['pkMtm_c'] = array('field' => $this->pkMtm['field'], 'type' => $this->pkMtm['type']); } else { $_SESSION['tng_download'][$this->reference]['properties']['pkMtm_c'] = array(); } if (isset($this->fkMtm['field']) && isset($this->fkMtm['type'])) { $_SESSION['tng_download'][$this->reference]['properties']['fkMtm_c'] = array('field' => $this->fkMtm['field'], 'type' => $this->fkMtm['type']); } else { $_SESSION['tng_download'][$this->reference]['properties']['fkMtm_c'] = array(); } $_SESSION['tng_download'][$this->reference]['properties']['counterFieldMtm'] = $this->counterFieldMtm; $_SESSION['tng_download'][$this->reference]['properties']['maxCounterFieldMtm'] = $this->maxCounterFieldMtm; $_SESSION['tng_download'][$this->reference]['properties']['maxCounterValueMtm'] = $this->maxCounterValueMtm; $_SESSION['tng_download'][$this->reference]['properties']['conn'] = $this->connName; $_SESSION['tng_download'][$this->reference]['properties']['relPath'] = $this->relPath; $_SESSION['tng_download'][$this->reference]['properties']['backUri'] = KT_getFullUri(); $_SESSION['tng_download'][$this->reference]['files'] = array(); $this->isSetted = true; } // set the class members in hash session to use in the download page; $hash = md5(uniqid("", true)); $_SESSION['tng_download'][$this->reference]['files'][$hash] = array(); $_SESSION['tng_download'][$this->reference]['files'][$hash]['folder'] = $this->preparedFolder; $_SESSION['tng_download'][$this->reference]['files'][$hash]['fileName'] = KT_DynamicData($this->renameRule, null); if (isset($this->pk['reference']) && $this->pk['reference'] != '') { $_SESSION['tng_download'][$this->reference]['files'][$hash]['pk'] = KT_DynamicData($this->pk['reference'], null); } if (isset($this->pkMtm['reference']) && $this->pkMtm['reference'] != '') { $_SESSION['tng_download'][$this->reference]['files'][$hash]['pkMtm'] = KT_DynamicData($this->pkMtm['reference'], null); } if (isset($this->fkMtm['field']) && $this->fkMtm['field'] != '' && isset($_SESSION['kt_login_id'])) { $_SESSION['tng_download'][$this->reference]['files'][$hash]['fkMtm'] = $_SESSION['kt_login_id']; } $url = $this->relPath . 'includes/tng/pub/tNG_download4.php'; $arr = array(); foreach ($_GET as $key => $val) { if (!preg_match("/^KT_download/is", $key)) { $arr[] = $key . '=' . $val; } } $url .= '?' . implode('&', $arr); $url = KT_addReplaceParam($url, $this->reference, $hash); return $url; }
echo '</div></div></body></html>'; exit; } } // delete selected file if (isset($_POST['delete']) && isset($_SESSION['tng_upload_delete'][$_POST['delete']])) { $file = new KT_file(); $file->deleteFile($folder . $_SESSION['tng_upload_delete'][$_POST['delete']]); if ($file->hasError()) { $err = $file->getError(); } else { // delete thumbnails tNG_deleteThumbnails($folder . '/thumbnails/', $_SESSION['tng_upload_delete'][$_POST['delete']], ''); } $_SESSION['tng_upload_delete'] = array(); KT_redir(KT_getFullUri()); } $_SESSION['tng_upload_delete'] = array(); // upload the files; if (isset($_FILES['Filedata'])) { $folderObj = new KT_folder(); $entries = $folderObj->readFolder($folder); if ($uploadHash['maxFiles'] == 0 || isset($uploadHash['maxFiles']) && isset($entries['files']) && count($entries['files']) < $uploadHash['maxFiles'] || !isset($uploadHash['maxFiles']) || !isset($entries['files'])) { $fileUpload = new KT_fileUpload(); $fileUpload->setFileInfo('Filedata'); $fileUpload->setFolder($folder); $fileUpload->setRequired(true); $fileUpload->setAllowedExtensions($uploadHash['allowedExtensions']); $fileUpload->setAutoRename(true); $fileUpload->setMaxSize($uploadHash['maxSize']); $fileName = $fileUpload->uploadFile($_FILES['Filedata']['name'], '');
</td> <?php } // endif Conditional region99 ?> <td><?php echo $rsFiles->Fields('date'); ?> </td><td> <?php echo number_format($rsFiles->Fields('size'), 0, '', ','); ?> bytes</td> <td> <form method="post" action="<?php echo KT_getFullUri(); ?> " enctype="multipart/form-data" class="tNG_deleteBtnForm"> <input type="hidden" name="delete" value="<?php $_SESSION['tng_upload_delete'][] = $rsFiles->Fields('name'); echo count($_SESSION['tng_upload_delete']) - 1; ?> " /> <input type="submit" name="KT_del" value="<?php echo KT_getResource('DELETE', 'tNG'); ?> " class="KT_delete_link button_smallest" onClick = "if (!confirm('Are you sure you want to delete?')) return false;" /> </form> </td> </tr> <?php
/** * return the error message * @return string transaction type * @access public */ function getErrorMsg() { $ret_warning = ''; $ret_user = ''; $ret_devel = ''; $errorWasFound = false; for ($i = 0; $i < $this->n; $i++) { list($ret_warning, $ret_user, $ret_devel) = $this->tNGs[$i]->getErrorMsg(); if ($ret_warning != '' || $ret_user != '' || $ret_devel != '') { $errorWasFound = true; break; } } $uniq = uniqid(""); $rethead = ''; //$rethead = '<link href="' . $this->relPath . 'includes/tng/styles/default.css" rel="stylesheet" type="text/css" />' . "\r\n"; //$rethead .= '<script src="' . $this->relPath . 'includes/common/js/base.js" type="text/javascript"></script>' . "\r\n"; //$rethead .= '<script src="' . $this->relPath . 'includes/common/js/utility.js" type="text/javascript"></script>' . "\r\n"; $ret = ''; $txtContent = ""; $txtContent .= "Client IP:\r\n " . $_SERVER['REMOTE_ADDR']; $txtContent .= "\r\n\r\nHost:\r\n " . $_SERVER['HTTP_HOST']; $txtContent .= "\r\n\r\nRequested URI:\r\n " . KT_getFullUri(); $txtContent .= "\r\n\r\nDate:\r\n " . date("Y-m-d H:i:s"); if ($errorWasFound) { if ($ret_warning != '') { $ret .= '<div id="KT_tngwarning">' . $ret_warning . "</div>\r\n"; $txtContent .= "\r\n\r\nWarning:\r\n " . $ret_warning; } if ($ret_user != '') { $ret .= '<div id="KT_tngerror"><label>' . KT_getResource('ERROR_LABEL', 'tNG') . '</label><div>' . $ret_user . '</div></div>' . "\r\n"; $txtContent .= "\r\n\r\n" . KT_getResource('ERROR_LABEL', 'tNG') . "\r\n " . $ret_user; } if ('DEVELOPMENT' == $GLOBALS['tNG_debug_mode']) { $js_err = KT_escapeJS($ret_user); $js_devNotes = KT_escapeJS($ret_devel); $js_os = PHP_OS; $js_webserver = @$_SERVER['SERVER_SOFTWARE']; $js_servermodel = (!file_exists($this->relPath . 'adodb/') ? 'PHP MySQL ' : 'PHP ADODB ') . phpversion(); $js_installation = KT_escapeJS(php_sapi_name()); $js_extensions = KT_escapeJS(var_export(get_loaded_extensions(), true)); $ret = $rethead . $ret; if ($ret_devel != '') { $ret .= '<div id="KT_tngdeverror"><label>Developer Details:</label><div>' . $ret_devel . '</div></div>'; } $tmp = tNG_log::getResult('html', '_' . $uniq); $ret .= '<div id="KT_tngtrace"><label>tNG Execution Trace - <a href="#" onclick="document.getElementById(\'KT_tngtrace_details_' . $uniq . '\').style.display=(document.getElementById(\'KT_tngtrace_details_' . $uniq . '\').style.display!=\'block\'?\'block\':\'none\'); return false;">VIEW</a></label>' . $tmp . '</div>'; } if ("" != $GLOBALS['tNG_debug_log_type'] && $ret_devel != '') { $txtContent .= "\r\n\r\nDeveloper Details:\r\n " . $ret_devel; $tmp = tNG_log::getResult('text', '_' . $uniq); $txtContent .= "\r\n\r\ntNG Execution Trace:\r\n" . $tmp; if ($GLOBALS['tNG_debug_log_type'] == 'logfile') { // log file $logFile = dirname(realpath(__FILE__)) . "/logs/" . date("Ym") . ".log"; $f = @fopen($logFile, "a"); if ($f) { if (flock($f, LOCK_EX)) { // do an exclusive lock fwrite($f, "=== BEGIN MESSAGE ===\r\n"); fwrite($f, $txtContent); fwrite($f, "=== END MESSAGE ===\r\n"); flock($f, LOCK_UN); // release the lock } fclose($f); } } else { $email = new KT_Email(); //$email->setPriority("medium"); $email->sendEmail($GLOBALS['tNG_email_host'], $GLOBALS['tNG_email_port'], $GLOBALS['tNG_email_user'], $GLOBALS['tNG_email_password'], $GLOBALS['tNG_debug_email_from'], $GLOBALS['tNG_debug_email_to'], "", "", $GLOBALS['tNG_debug_email_subject'], "ISO-8859-1", $txtContent, ""); } } } return $ret; }
function getScripts() { $includedpath = $this->relpath; if (isset($GLOBALS['KT_REL_PATH'])) { $includedpath = $GLOBALS['KT_REL_PATH'] . $includedpath; } $url = KT_addReplaceParam(KT_getFullUri(), '/^totalRows_.*$/i'); $ret = ''; $ret .= '<script src="' . $this->relpath . 'includes/tng/pub/flashembed.js" type="text/javascript" language="javascript"></script>' . "\n"; $ret .= '<script type="text/javascript"> //this is the unique instance of the multiple file upload object myupload = new tNG_FlashUpload(\'' . $includedpath . '\',\'multiple-file-upload-container\',\'myupload\');' . 'myupload.setColors(\'' . $this->barColor . '\',\'' . $this->textColor . '\',\'' . $this->borderColor . '\'); KT_self_url = "' . KT_addReplaceParam($url, 'isFlash') . '"; </script>' . "\n"; return $ret; }
function renderBegin() { $this->setTabFromUri(); $this->setAjaxStubContext(); $this->w = $this->h = ''; if ($this->options['has_width']) { $this->w = 'width: ' . $this->options['dimensions']['width'] . 'px'; } if ($this->options['has_height']) { $this->h = 'height: ' . $this->options['dimensions']['height'] . 'px'; } $style = $this->options['has_width'] || $this->options['has_height'] ? 'style="' . implode(';', array($this->w, $this->h)) . ';"' : ''; $toret = '<div id="' . $this->id . '" class="tabset phprendering" ' . ($this->options['has_width'] ? 'style="' . $this->w : '') . '">'; $toret .= '<ul class="tabset_tabs">'; for ($i = 0; $i < count($this->tabs); $i++) { $toret .= ' <li id="' . $this->id . 'tab' . $i . '-tab" class="tab ' . $this->getNavigationSelectedClass($i) . '"><a id="link__' . $this->id . 'tab' . $i . '" href="' . str_replace('&', '&', KT_addReplaceParam(KT_getFullUri(), $this->id . '__tab', $i) . '">' . $this->tabs[$i]['title']) . '</a></li>'; } $toret .= '</ul>'; for ($i = 0; $i < count($this->tabs); $i++) { $toret .= ' <div id="' . $this->id . 'tab' . $i . '-body" class="tabBody ' . $this->getContentSelectedClass($i) . '" ' . ($this->options['has_width'] || $this->options['has_height'] ? 'style="' . implode(';', array($this->w, $this->h)) . ';overflow: auto;"' : '') . '> <div class="tabContent">'; if ($i == $this->selected) { break; } $toret .= '</div> </div>'; } $this->prevDir = getcwd(); chdir(dirname(realpath($this->tabs[$this->selected]['file']))); return $toret; }
.KT_col_categoria {width:140px; overflow:hidden;} .KT_col_subcat {width:140px; overflow:hidden;} </style> </head> <body> <div class="KT_tng" id="listsubcat1"> <h1> Subcategorías <?php $nav_listsubcat1->Prepare(); require "../includes/nav/NAV_Text_Statistics.inc.php"; ?> </h1> <div class="KT_tnglist"> <form action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?> " method="post" id="form1"> <div class="KT_options"> <a href="<?php echo $nav_listsubcat1->getShowAllLink(); ?> "><?php echo NXT_getResource("Show"); ?> <?php // Show IF Conditional region1 if (@$_GET['show_all_nav_listsubcat1'] == 1) { ?> <?php echo $_SESSION['default_max_rows_nav_listsubcat1']; ?>
function getResetFilterLink() { $reset_filter_reference = "reset_filter_" . $this->filterName; if (isset($_GET[$reset_filter_reference])) { $url = KT_addReplaceParam(KT_getFullUri(), $reset_filter_reference); } else { $url = KT_addReplaceParam(KT_getFullUri(), $reset_filter_reference, "1"); $url = KT_addReplaceParam($url, '/pageNum_.*/'); $url = KT_addReplaceParam($url, '/totalRows_.*/'); } return $url; }