Browse Source

hello github! initial github repo for bibtexbrowser

the goal is to collect patches and extensions as pull requests,
as suggested by George Oikonomou and Sjoerd OP 'T LAND

this version is the release candidate v20120703
pull/1/head
Martin Monperrus 13 years ago
parent
commit
f15adf086a
  1. 6
      README.md
  2. 16
      bibtexbrowser.php

6
README.md

@ -0,0 +1,6 @@
This is the github repository of bibtexbrowser.
It is used to collect patches and extensions as pull requests.
The official home page of bibtexbrowser is <http://www.monperrus.net/martin/bibtexbrowser/>.

16
bibtexbrowser.php

@ -1,5 +1,5 @@
<?php /* bibtexbrowser: publication lists with bibtex and PHP <?php /* bibtexbrowser: publication lists with bibtex and PHP
<!--this is version v__MTIME__ -->
<!--this is version v20120703 -->
URL: http://www.monperrus.net/martin/bibtexbrowser/ URL: http://www.monperrus.net/martin/bibtexbrowser/
Feedback & Bug Reports: martin.monperrus@gmail.com Feedback & Bug Reports: martin.monperrus@gmail.com
@ -16,7 +16,7 @@ License, or (at your option) any later version.
// added on Wednesday, June 01 2011, bug found by Carlos Bras // added on Wednesday, June 01 2011, bug found by Carlos Bras
if (!defined('BIBTEXBROWSER')) { if (!defined('BIBTEXBROWSER')) {
// this if block ends at the very end of this file, after all class and function declarations. // this if block ends at the very end of this file, after all class and function declarations.
define('BIBTEXBROWSER','v__MTIME__');
define('BIBTEXBROWSER','v20120703');
// *************** CONFIGURATION // *************** CONFIGURATION
@ -123,7 +123,7 @@ define('BIBTEXBROWSER','v__MTIME__');
// we ensure that the pages won't get polluted // we ensure that the pages won't get polluted
// if future versions of PHP change warning mechanisms... // if future versions of PHP change warning mechanisms...
@error_reporting(/*pp4php:serl*/E_ALL/*lres*/);
@error_reporting(E_ERROR);
/** parses $_GET[Q_FILE] and puts the result (an object of type BibDataBase) in $_GET[Q_DB]. /** parses $_GET[Q_FILE] and puts the result (an object of type BibDataBase) in $_GET[Q_DB].
@ -1800,7 +1800,7 @@ class IndependentYearMenu {
function poweredby() { function poweredby() {
$poweredby = "\n".'<div style="text-align:right;font-size: xx-small;opacity: 0.6;" class="poweredby">'; $poweredby = "\n".'<div style="text-align:right;font-size: xx-small;opacity: 0.6;" class="poweredby">';
$poweredby .= '<!-- If you like bibtexbrowser, thanks to keep the link :-) -->'; $poweredby .= '<!-- If you like bibtexbrowser, thanks to keep the link :-) -->';
$poweredby .= 'Powered by <a href="http://www.monperrus.net/martin/bibtexbrowser/">bibtexbrowser</a><!--v__MTIME__-->';
$poweredby .= 'Powered by <a href="http://www.monperrus.net/martin/bibtexbrowser/">bibtexbrowser</a><!--v20120703-->';
$poweredby .= '</div>'."\n"; $poweredby .= '</div>'."\n";
return $poweredby; return $poweredby;
} }
@ -2941,7 +2941,7 @@ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo ENCODING ?>"/> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo ENCODING ?>"/>
<meta name="generator" content="bibtexbrowser v__MTIME__" />
<meta name="generator" content="bibtexbrowser v20120703" />
<?php <?php
// if ($content->getRSS()!='') echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$content->getRSS().'&amp;rss" />'; // if ($content->getRSS()!='') echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$content->getRSS().'&amp;rss" />';
?> ?>
@ -3203,7 +3203,7 @@ class RSSDisplay {
<link>http://<?php echo $_SERVER['HTTP_HOST'].htmlentities($_SERVER['REQUEST_URI']);?></link> <link>http://<?php echo $_SERVER['HTTP_HOST'].htmlentities($_SERVER['REQUEST_URI']);?></link>
<atom:link href="http://<?php echo $_SERVER['HTTP_HOST'].htmlentities($_SERVER['REQUEST_URI']);?>" rel="self" type="application/rss+xml" /> <atom:link href="http://<?php echo $_SERVER['HTTP_HOST'].htmlentities($_SERVER['REQUEST_URI']);?>" rel="self" type="application/rss+xml" />
<description></description> <description></description>
<generator>bibtexbrowser v__MTIME__</generator>
<generator>bibtexbrowser v20120703</generator>
<?php <?php
foreach($this->entries as $bibentry) { foreach($this->entries as $bibentry) {
@ -3461,7 +3461,7 @@ class Dispatcher {
function diagnosis() { function diagnosis() {
header('Content-type: text/plain'); header('Content-type: text/plain');
echo "php version: ".phpversion()."\n"; echo "php version: ".phpversion()."\n";
echo "bibtexbrowser version: __MTIME__\n";
echo "bibtexbrowser version: 20120703\n";
echo "dir: ".decoct(fileperms(dirname(__FILE__)))."\n"; echo "dir: ".decoct(fileperms(dirname(__FILE__)))."\n";
echo "bibtex file: ".decoct(fileperms($_GET[Q_FILE]))."\n"; echo "bibtex file: ".decoct(fileperms($_GET[Q_FILE]))."\n";
exit; exit;
@ -3473,7 +3473,7 @@ class Dispatcher {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta name="generator" content="bibtexbrowser v__MTIME__" />
<meta name="generator" content="bibtexbrowser v20120703" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo ENCODING ?>"/> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo ENCODING ?>"/>
<title>You are browsing <?php echo $_GET[Q_FILE]; ?> with bibtexbrowser</title> <title>You are browsing <?php echo $_GET[Q_FILE]; ?> with bibtexbrowser</title>
</head> </head>

Loading…
Cancel
Save