$w = linker('/archive?abs=on&q=' . urlencode(strip_tags($w)), $w); } $loc = array_values(array_slice($abs, 0, 4)); $pdf = linkpdf($loc); $edt = $user ? linkedt($loc, 'btn brd') : ''; echo paginate($abs, 'page', $edt); echo '<div>' . cite($loc) . '</div>'; echo linker(mkdoi($abs['doi'])); echo '<div class="section">' . $subj[$abs['section']] . '</div>'; echo '<h3>' . $abs['title'] . '</h3>'; echo '<em>' . $abs['author'] . '</em>'; echo '<ul><li>' . implode("</li><li>", explode("\r\n", $abs['inst'])) . '</li></ul>'; echo '<div class="panel"><div class="h">Abstract</div><div>'; echo '<p>' . $abs['abstract'] . '</p>'; echo '<p><strong>Keywords:</strong> ' . implode(', ', $kwd) . '</p>'; echo '<p>Full text: ' . linker($pdf, 'PDF (' . getlang($abs['pdf']) . ')') . ' ' . humansize(@filesize($_SERVER['DOCUMENT_ROOT'] . $pdf)) . '</p></div></div>'; if (strlen($abs['refs'])) { echo '<div class="panel"><div class="h">References</div>'; echo '<div><ol class="ref"><li>' . implode("</li><li>", explode("\r\n", preg_replace_callback('/\\b(http|www)([^\\s<>"&]|&(?![lg]t;))+\\b\\/?/', 'linker', $abs['refs']))) . '</li></ol></div></div>'; } } elseif (isset($abs['title'])) { echo '<div class="content">'; foreach ($issue as $cur) { $abs = $cur[0]; $doi = mkdoi($abs['doi']); $doi = substr($doi, 0, strrpos($doi, '.')); $pag = isset($abs['issues']) ? paginate($abs, 'issue') : ''; $nam = $pag ? '' : ' <div class="rht">' . J_NAME . '</div>'; echo "{$pag}<h2>{$year}, Vol. {$vol}, Issue {$abs['issue']}{$nam}</h2>"; echo linker($doi, $doi, 'rht') . plural(count($cur), 'article'); foreach ($cur as $abs) {
print "<a href=" . $entry . ">"; print "<img src=" . $entry . " alt=" . '"' . $alt . '"' . ">"; print "</a><p> \r\n"; print "<a href=index.php>View All Images</a>\r\n"; print " | <a href=http://www.dr-chuck.com/>Home Page</a>\r\n"; print "</center>\r\n"; exit; } } } $ithumb = 0; print "<h2>Images</h2><ul>\r\n"; for ($i = 0; $i < count($dlist); $i++) { $entry = $dlist[$i]; $size = filesize($path . '/' . $entry); $humansize = humansize($size); $entry = str_replace('"', "", $entry); $entry = str_replace('<', "", $entry); $entry = str_replace('>', "", $entry); $dotpos = strrpos($entry, '.'); $file_only = null; if ($dotpos) { $ext = substr($entry, $dotpos + 1); $file_only = substr($entry, 0, $dotpos); // echo "File=" . $file_only . "\r\n"; if ($ext == 'txt') { continue; } if ($ext != 'jpg') { print "<li><a href='{$entry}'>{$entry}</a></li>\n"; continue;
$info['safe_mode'] = ini_get('safe_mode') ? '是' : '否'; empty($info['disable_functions']) && ($info['disable_functions'] = '无'); $info['upload_max_filesize'] = ini_get('upload_max_filesize'); $info['post_max_size'] = ini_get('post_max_size'); $info['memory_limit'] = ini_get('memory_limit'); $info['max_execution_time'] = ini_get('max_execution_time'); $info['dbversion'] = $db->version(); $info['SERVER_SOFTWARE'] = array_value($_SERVER, 'SERVER_SOFTWARE', ''); $info['HTTP_X_FORWARDED_FOR'] = array_value($_SERVER, 'HTTP_X_FORWARDED_FOR', ''); $info['REMOTE_ADDR'] = array_value($_SERVER, 'REMOTE_ADDR', ''); $stat = array(); $stat['threads'] = thread_count(); $stat['posts'] = post_count(); $stat['users'] = user_count(); $stat['attachs'] = attach_count(); $stat['disk_free_space'] = function_exists('disk_free_space') ? humansize(disk_free_space('./')) : '未知'; $lastversion = get_last_version($stat); // 潜在错误检测,目录可写检测,避免搬家导致的问题。 $check = array(); $upload_tmp_dir = ini_get('upload_tmp_dir'); if (!empty($upload_tmp_dir)) { $check['upload_path_check'] = is_writable($upload_tmp_dir) ? "<span class\"red\">{$upload_tmp_dir} 不可写</span>,上传功能会受到影响。" : "<span class=\"green\">{$upload_tmp_dir} 可写</span>"; } else { $check['upload_path_check'] = "<span class=\"red\">php.ini 中未设置 upload_tmp_dir,可能会导致上传失败 </span>"; } $check['php_ini'] = ini_get('upload_tmp_dir'); include './admin/view/index.htm'; } function get_last_version($stat) { global $conf, $time;