Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
ZeroBin 0.18
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a8cbee)

Conflicts:
	CHANGELOG.md
	index.php
	js/zerobin.js
	lib/vizhash16x16.php
  • Loading branch information
sebsauvage authored and elrido committed Aug 15, 2015
1 parent ecd2e06 commit 5f87ea6
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 23 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,17 @@
* small refactoring.
* improved regex checks.
* larger server alt on installation.

* **Alpha 0.18 (2013-02-24)**:
* ADDED: The resulting URL is automatically selected after pressing "Send". You just have to press CTRL+C.
* ADDED: Automatic syntax highlighting for 53 languages using highlight.js
* ADDED: "5 minutes" and "1 week" expirations.
* ADDED: "Raw text" button.
* jQuery upgraded to 1.9.1
* sjcl upgraded to GitHub master 2013-02-23
* base64.js upgraded to 1.7
* FIXED: Dates in discussion are now proper local dates.
* ADDED: Robot meta tags in HTML to prevent search engines indexing.
* ADDED: Better json checking (including entropy).
* ADDED: Added version to js/css assets URLs in order to prevent some abusive caches to serve an obsolete version of these files when ZeroBin is upgraded.
* "Burn after reading" option has been moved out of Expiration combo to a separate checkbox. Reason is: You can prevent a read-once paste to be available ad vitam eternam on the net.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ZeroBin 0.17 Alpha
ZeroBin 0.18 Alpha

==== THIS IS ALPHA SOFTWARE - USE AT YOUR OWN RISKS ====

Expand Down
2 changes: 1 addition & 1 deletion cfg/conf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
; @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
; @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
; @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
; @version 0.17
; @version 0.18

[main]
; enable or disable discussions
Expand Down
2 changes: 1 addition & 1 deletion css/zerobin.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ZeroBin 0.17 - http://sebsauvage.net/wiki/doku.php?id=php:zerobin */
/* ZeroBin 0.18 - http://sebsauvage.net/wiki/doku.php?id=php:zerobin */


/* CSS Reset from YUI 3.4.1 (build 4118) - Copyright 2011 Yahoo! Inc. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

// change this, if your php files and data is outside of your webservers document root
Expand Down
2 changes: 1 addition & 1 deletion js/zerobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

// Immediately start random number generator collector.
Expand Down
2 changes: 1 addition & 1 deletion lib/auto.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

spl_autoload_register('auto::loader');
Expand Down
2 changes: 1 addition & 1 deletion lib/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/persistence.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/serversalt.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

/**
Expand Down Expand Up @@ -59,10 +59,10 @@ public static function get()

$file = 'salt.php';
if (!self::_exists($file)) {
self::_store(
self::_store(
$file,
'<?php /* |'. self::generate() . '| */ ?>'
);
'<?php /* |'. self::generate() . '| */ ?>'
);
}
$items = explode('|', file_get_contents(self::getPath($file)));
self::$_salt = $items[1];
Expand Down
2 changes: 1 addition & 1 deletion lib/sjcl.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/trafficlimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/vizhash16x16.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:vizhash_gd
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.0.4 beta ZeroBin 0.17
* @version 0.0.4 beta ZeroBin 0.18
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/zerobin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.17
* @version 0.18
*/

/**
Expand All @@ -20,7 +20,7 @@ class zerobin
/*
* @const string version
*/
const VERSION = 'Alpha 0.17';
const VERSION = 'Alpha 0.18';

/**
* @access private
Expand Down
2 changes: 1 addition & 1 deletion lib/zerobin/abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/zerobin/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/zerobin/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.15
* @version 0.18
*/

/**
Expand Down Expand Up @@ -175,8 +175,8 @@ public static function getInstance($options = null)
*/
public function create($pasteid, $paste)
{
if (
array_key_exists($pasteid, self::$_cache)
if (
array_key_exists($pasteid, self::$_cache)
) {
if(false !== self::$_cache[$pasteid]) {
return false;
Expand Down

0 comments on commit 5f87ea6

Please sign in to comment.