$back .= "<b style='font-family: monospace'>Type:</b> {$errstr}"; $back .= "</div>"; $phpErrors[] = $back; break; case E_STRICT: case E_NOTICE: case E_USER_NOTICE: case E_DEPRECATED: case E_USER_DEPRECATED: if (!defined('THIRD_PARTY_LIBS_PATTERN') || !preg_match(THIRD_PARTY_LIBS_PATTERN, $errfile)) { if (!empty($prefs['smarty_notice_reporting']) && $prefs['smarty_notice_reporting'] != 'y' && strstr($errfile, '.tpl.php')) { break; } $back = "<div class='rbox-data' style='font-size:10px;border:1px solid'>"; $back .= "<b>PHP (" . PHP_VERSION . ") NOTICE ({$err[$errno]}):</b><br />"; $back .= "<b style='font-family: monospace'>File:</b> {$errfile}<br />"; $back .= "<b style='font-family: monospace'>Line:</b> {$errline}<br />"; $back .= "<b style='font-family: monospace'>Type:</b> {$errstr}"; $back .= "</div>"; $phpErrors[] = $back; } default: break; } } // Patch missing $_SERVER['REQUEST_URI'] on IIS6 if (empty($_SERVER['REQUEST_URI'])) { if (TikiInit::isIIS()) { $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; } }
if (empty($fileId)) { if ($gal_info['type'] == 'user') { $galleries = $filegallib->getSubGalleries($requestGalleryId, true, 'userfiles'); } else { $galleries = $filegallib->getSubGalleries($requestGalleryId, true, 'upload_files'); } $smarty->assign_by_ref('galleries', $galleries["data"]); $smarty->assign('treeRootId', $galleries['parentId']); } if ($prefs['fgal_limit_hits_per_file'] == 'y') { $smarty->assign('hit_limit', $filegallib->get_download_limit($fileId)); } if (!empty($fileInfo['fileId'])) { $smarty->assign('metarray', $filegallib->metadataAction($fileInfo['fileId']), 'get_array'); } $is_iis = TikiInit::isIIS(); $smarty->assign('is_iis', $is_iis); $cat_type = 'file'; $cat_objid = (int) $fileId; include_once 'categorize_list.php'; include_once 'tiki-section_options.php'; ask_ticket('upload-file'); // disallow robots to index page: $smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW'); // Display the template if ($prefs['javascript_enabled'] != 'y' or !$isUpload) { if ($prefs['file_galleries_use_jquery_upload'] !== 'y') { $headerlib->add_jsfile('vendor/jquery/plugins/form/jquery.form.js'); } $smarty->assign('mid', 'tiki-upload_file.tpl'); if (!empty($_REQUEST['filegals_manager'])) {