Git Product home page Git Product logo

stikked's Introduction

Stikked is an Open-Source PHP Pastebin, with the aim of keeping a simple and easy to use user interface.

Stikked allows you to easily share code with anyone you wish. Based on the original Stikked with lots of bugfixes and improvements.

Here are some features:

  • Easy setup
  • Syntax highlighting for many languages, including live syntax highlighting with CodeMirror
  • Paste replies
  • Diff view between the original paste and the reply
  • An API
  • Search pastes
  • Trending pastes
  • Encrypted pastes
  • Burn on reading
  • Anti-Spam features
  • Themes support
  • Multilanguage support
  • Stikked client with support for client side encryption/decryption: gostikkit
  • Another CLI tool requiring only curl program: pbin
  • And many more. View this review

Try it out

https://paste.scratchbook.ch/

See an encrypted paste: https://paste.scratchbook.ch/view/1427473f#iP7p05DRH0BC72qQjxv01BjUeOmNV073

Prerequisites

  • A web server: Apache, Lighttpd, Nginx, Cherokee.
  • A database: MySQL, Postgres. OR a writable folder on your filesystem for SQLite.
  • PHP version 5.6 or newer is recommended.
  • PHP-GD for the creation of QR-codes.

Installation

  1. Download Stikked from https://github.com/claudehohl/Stikked/releases
  2. Create a user and database for Stikked
  3. Copy application/config/stikked.php.dist to application/config/stikked.php
  4. Edit configuration settings in application/config/stikked.php - everything is described there
  5. You're done!
  • The database structure will be created automatically if it doesn't exist.
  • No special file permissions are needed by default. Optional: If you want to have the JavaScript- and CSS-files minified, the static/asset/ folder has to be writable.
  • To ensure that pastes with an expiration set get cleaned up, define the cron key in the config and set up a cronjob, for example:
    • */5 * * * * curl --silent http://yoursite.com/cron/[key]
  • If you encounter errors with stylesheets and paths, make sure your base_url config value is not empty (see here).
  • Be sure to also copy the .htaccess file when you move files around. This is a hidden file and easily overlooked.

How to run it in Docker

docker-compose up

This automatically builds the docker-image and fires up nginx, php and mariadb. Access your Stikked instance at http://localhost/.

All files are served directly; the Stikked-configuration for Docker resides in docker/stikked.php

Documentation

In the folder doc/, you will find:

  • Webserver example configurations for Apache, Nginx, Lighttpd, Cherokee
  • A troubleshooting guide
  • How to create your own theme
  • How to translate Stikked into your language
  • How to contribute and improve Stikked

Changelog

Version 0.14.0:

  • Rewritten the Docker setup to be simple and clean:
    • switch to nginx-alpine, php-fpm-alpine and mariadb
    • docker-compose: autobuild php-image for stikked
    • serve all files directly (htdocs is mounted instead of copied)
    • stikked-configuration for docker resides in docker/stikked.php
  • force private-flag when a previously encrypted paste gets pasted public
  • Fixed a critical bug that allowed pasting despite captcha
  • Various bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

Version 0.13.0:

  • Updated CodeIgniter to 3.1.9
  • Various improvements in the Docker setup
  • An automated Docker-build: https://hub.docker.com/r/claudehohl/stikked/
  • Reverted the "intelligent language switcher" back to a fixed language setting because of too many side-effects
  • Fixed encodings and decryption functionality in various themes
  • Various bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

The language setting in config/stikked.php is back, you can set a fixed language:

$config['language'] = 'english';

New config option: Content expiration.
Sets the "Expires:"-header to make use of browser-caching
Format: http://php.net/manual/en/function.strtotime.php
Examples: '+10 seconds', '+1 year', '-1 week'
Browser-caching is disabled when this option is not set.

$config['content_expiration'] = '+1 week';

Version 0.12.0:

  • Updates ensuring the compatibility with PHP7:
    • Updated CodeIgniter to 3.1.5
    • Updated GeSHi to 1.0.9.0
  • Ability to run Stikked in Docker
  • Small security fixes regarding XSS and LDAP
  • Various bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

If you want to keep QR codes being displayed, add the following line in config/stikked.php:

$config['qr_enabled'] = true;

Version 0.11.0:

  • Upgrade to CodeIgniter 3.1.0
  • Added ACE editor
  • Ability to select JS editor (CodeMirror, ACE or none)
  • Insert paste text via drag & drop
  • BBCode support
  • Improved Spamadmin; ability to delete single and multiple pastes at once
  • Soft api key
  • Lots of bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

Add and set the base_url in htdocs/application/config/stikked.php

Version 0.10.0:

  • Upgrade to CodeIgniter 3.0.1 and with it, lots of improvements:
    • SQLite support (yay!)
    • Lots of "Error 500" and blank screens fixed
  • New theme: i386
  • New translations: Lithuanian, Danish, Polish
  • Automatic language detection
  • Support for the new ReCaptcha API
  • Support for Goo.gl and Bit.ly URL shorteners
  • Display expiration time if set
  • XSS fixes
  • Word wrap for looong words in paste display
  • And many more

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version.

Append the $config['expires'] part at the bottom of application/config/stikked.php.dist to your config.

Copy it back.

Version 0.9.0:

  • New translations: Japanese, Chinese-Simplified, Chinese-Traditional, Russian
  • New themes: Stikkedizr, Cleanwhite
  • Display QR code in paste
  • Multiline highlighter
  • Encrypted pastes (yeah!) - see it in action: http://paste.scratchbook.ch/view/1427473f#iP7p05DRH0BC72qQjxv01BjUeOmNV073
  • Added "burn on reading" as expiration
  • Search function - search in recent and trending pastes
  • Added mockingjay to word list for unknown posters - let the revolution begin!
  • Bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

Version 0.8.6:

  • New translations: Portuguese, Norwegian, Turkish, French
  • New theme: Snowkat
  • YOURLS support (http://yourls.org/)
  • There is now a stikked.php.dist. You may copy that to config.php and have your own settings
  • The API has more possibilities, see API doc
  • Captcha must be entered only once, no more for further pastes
  • Bugfixes and improvements

Upgrade instructions

Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back.

Version 0.8.5:

  • Themes! Configure a different theme in config/stikked.php - or create your own
  • Multilanguage support. Configure a different language in config/stikked.php
  • Diff view for paste replies! View differences between the original paste and its reply
  • see it in action: http://paste.scratchbook.ch/view/de81a093/diff
  • Possibility to set default expiration time
  • Updated GeSHi to version 1.0.8.11
  • Updated CodeMirror to version 3.11
  • Lots of minor fixes and improvements
  • Added guides for troubleshooting, development, translation and creating themes
  • Added webserver example configurations
  • Added reCaptcha integration for better antispam

Upgrade instructions

The following lines must be present config/stikked.php

$config['theme'] = 'default';

You can choose between default, bootstrap, gabdark, gabdark3 and a fancy geocities theme ;)

Create you own theme. See doc/CREATING_THEMES.md

$config['language'] = 'english';

You can choose between english, german and swissgerman ;)

Help translating Stikked into your language! See doc/TRANSLATING_STIKKED.md

reCaptcha
$config['recaptcha_publickey'] = '';
$config['recaptcha_privatekey'] = '';

If these lines are filled, reCaptcha will be used. Get a key from https://www.google.com/recaptcha/admin/create

Version 0.8.4:

  • Trending pastes: http://paste.scratchbook.ch/trends
  • LDAP authentication (thanks to Daniel, https://github.com/lightswitch05)
  • Blocked words; maintain a comma separated list in your config, e.g. '.es.tl, mycraft.com, yourbadword' - pastes with this words will never get pasted
  • Spam trap for bots
  • Bugfix: Remove_invisible_characters removing legitimate paste content (#28)
  • Possibility to manually set the paste's displayed URL (used with mod_rewrite configurations)
  • Print layout for pastes
  • Updated to CodeIgniter version 2.1.3

Version 0.8.3:

  • From now on, IPs get logged in the DB
  • Added spamadmin:
    • Enter credentials in config/stikked.php
    • Visit /spamadmin, login
    • Click on an IP to list all pastes belonging to it
    • You can remove all the pastes listed, and optionally block the IP range
  • Updated to CodeIgniter version 2.1.2

Version 0.8.2:

  • Database optimizations: Pastes use less space (if you upgrade from a previous version, execute this SQL statement: "ALTER TABLE pastes DROP paste;"
  • Anti spam features:
    • Option to disable recent pastes
    • Option to require the user to enter a captcha

Version 0.8.1:

  • Cleaner options
  • Valid RSS feed
  • Simpler API response (non-JSON)
  • Favicon
  • gw.gd URL shortener (replaces bit.ly)
  • Minor fixes

Version 0.8:

  • Added backup function (yoursite.com/backup; set credentials in stikked.php config)
  • Added pagination to the replies table
  • Added RSS-Feeds to recent pastes and paste replies
  • Embeddable pastes
  • GeSHi updated to version 1.0.8.10
  • Codemirror turned off by default
  • Codemirror: Syntax changes dynamically with selection in language dropdown

Version 0.7:

Version 0.6:

  • The language-selection was broken; the dropdown now features all the languages that GeSHi supports
  • Updated to CodeIgniter version 2.1.0
  • Creation of bit.ly-URLs (instead of snipurl)
  • Fixed download link
  • Paste downloads as a .txt file
  • No need to have PHP short tags enabled
  • Automatic creation of all necessary MySQL tables
  • Raw-mode is now like the raw-mode on pastebin.com
  • Minification and concatenation of CSS and JavaScript files (can be turned on/off)
  • Breached the license by removing the nasty copyright footer

Version 0.5:

  • Paste Replies
  • Fluid width pastes
  • Auto copying paste url to clipboard.
  • Paste expiration.
  • Fully standards compliant css and xhtml.
  • Random generating names for anonymous users
  • Paste downloading

stikked's People

Contributors

abma avatar akmc avatar azdrax avatar ch0wnag3 avatar claudehohl avatar esplor avatar glensc avatar haliphax avatar hyperhcl avatar jakkuh avatar jonrandoem avatar kalaker avatar kiang avatar mastergroosha avatar mrc0mmand avatar mtecknology avatar oberling avatar pjanisio avatar rydhoms avatar sionex-code avatar skorotkiewicz avatar techjwalker avatar th3r3p0 avatar the-compiler avatar thomas-maurice avatar xrobau avatar xzero707 avatar yangjun1994 avatar zsdregas avatar zwixx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stikked's Issues

Print view

There is no print view, yet. Implement!

Change default retention period

Sorry to bother you, but I struggle to find the relevant code to change the default retention period for pastes. I tried to reorder the entries in application/views/defaults/paste_form.php, but that didn't work.

Thanks!

Recent pastes not visible in lighttpd

I've setup Stikked along your Readme. I'm running on lighttpd. The "recent" page constantly shows constantly "No pastes", even if i can see the entrys in the corresponding SQL Table

Mention cronjob in install instructions

The install instructions make it sound like there is no special setup necessary to purge old pastes. The linked howto also does not mention the cronjob. I bet there are a lot of Stikked installations out there that just don't clean the database. Personally, I thought Stikked organizes its cleanup when someone hits a page and a certain interval (say, 30 minutes), has passed.

Please add a short hint towards the necessary cronjob to your README. Thanks!

Fast-Cgi Error

Ok hi, so if your using Fast-Cgi, the htaccess will mess up..

Solution:

Turn
RewriteRule ^(.*)$ index.php/$1 [L]

into
RewriteRule ^(.*)$ index.php?/$1 [L]
ok

Warnings if $_SERVER['SCRIPT_NAME'] is set, but empty

Happened with Cherokee, Default rule set to FCGI/PHP and script alias pointing to index.php.

Warnings occur in htdocs/system/core/URI.php lines 186 and 190 because SCRIPT_NAME is empty but is set.

Solution is to change line 180 from !isset to empty.
if ( empty($_SERVER['REQUEST_URI']) OR empty($_SERVER['SCRIPT_NAME']))

Several issues on setup

As the INSTALL doc was pretty simple, I followed it, but I experienced some issues :

at first, I didn't get any captcha even if I activated them in application/config/stikked.php,
I thought it was a typical pebkac, but then I disabled it to paste without captcha, and i get that error :

The requested URL /view/c738d9f8 was not found on this server.

so I created the /view folder, and chown'd it, but it didn't fixed my issue ...

missing an INSTALL file

an install file would be cool, current readme dont even tell the database structure
trying to follow http://code.google.com/p/stikked/wiki/Install
hoping it still applies to this fork

edit: i cant even find a sql dump in the git clone, I ll try to see if theres something in the downloads

install file could also give some info on the permissions needed , I suppose cache and logs dir ned write access, anything else ? I dont want to chmod -R 777 ;(

could also need some info about setting up the crontab

Request to require login from LDAP

I'm greatly interested in this project, however it will only be useful to me if it requires a Login. I'm more then happy to write the login code myself and submit a pull request, but would like to discus the change first.

Just got done looking through the Code Igniter wiki for any Authentication tools... there are many. But it doesn't look like any of them support LDAP. LDAP is a must for me as no one will use it if they have to create and manage a new password. My thoughts is to have a very-long expiration time set on the cookie so that logging in and out wouldn't be a regular step.

Anyways, is this an optional feature you would want for Stikked? Is there any particular authentication tools you would want to include? Is this something you might consider adding, or should I create a fork?

Thanks for the input.

How to run cleanup script locally?

Hi,

Is there a way to run the cron curl cleanup job locally or programmatically rather than via curl? Maybe I'm just dense, but I can't figure out what that cron job does exactly, or how I can replicate it on the local box.

Search Option

Hello,

Has anyone worked on a search option for this or is this something I will have to do myself?

Thanks!

Not been able to use ldap_auth for login

hey buddy i have updated the require auth = true and uploaded all files but then i m getting this error

An Error Was Encountered

LDAP functionality not present. Either load the module ldap php module or use a php with ldap support compiled in.

Go Home

Issue after Install

After installing Stikked i get this error


A Database Error Occurred

Error Number: 1103

Incorrect table name ' SET '

UPDATE SETlast_activity= NULL,user_agent= NULL,ip_address= NULL,session_data` = 'a:1:{s:6:"expire";i:0;}' WHERE session_id = NULL

Filename: /srv/www/paste.***.**/htdocs/libraries/db_session.php

Line Number: 303


Any suggestions on how to fix this issue

Thanks.

Blocked Ip's

while in the spamadmin section, clicking on "View blocked IPs." has the same effect if i were to click in a IP address of a paste. instead of showing the list of blocked ips

Configuration feature: Deactivate public posts & save periode (forever)

Because then you host this pastebin you have to moderate it to keep it clean (no stolen passwords or something like that). With a config flag you could help the hoster to make the pastebin uninteressting for "bad" people that post such things or try to spam the db with posts that lasts forever :-)

Expiration time is ignored

Hello,
I have stikked 0.84 installed and it's quite great, but I am having trouble with cron job I think. As by default my pastes with time limit are not deleted and they stay forever.

Now, i do not really understand how this cron thing works in stikked what exactly I have to call? So that is most likely my problem. There seem to be no such location as /cron/key or anything even remotely simmilar on my site. So I have absolutely no clue what and where should be called. It would be great if there would be a somewhat simpler explanation about this cron thing.

Many thanks

View created: 404 Not Found

Hi,
I have configured stikked in apache2 with MySQL in Ubuntu server. I was able to load initial page & create a snippet (It is getting added in DB). but after creating i am getting 404 not found error while redirecting to created snippet.

URL being redirected is: http://localhostserver/stikked/view/6fswe34.

I think i am missing something in .htaccess config or config.php. Please let me know how to fix this problem.

Spamadmin: More comfort, less clicking

Make a selection of pastes by click-and-mark (hovering) over multiple pastes and delete them (that also includes the possibility to delete only a single paste, not only pastes-per-ip).

reCAPTCHA

is there anyway to make an option to change which captcha this uses?

Call to undefined function base_url()

stikker is working well but I often see this error in apache error_log :

[Sun May 06 19:26:31 2012] [error] [client 190.42.96.229] PHP Fatal error: Call to undefined function base_url() in /paste.gw.gd/html/application/errors/error_general.php on line 12

any ideas ?

spam protection?

is there any way to prevent spammers posting links to stikked?
i get a lot of unwanted posts lately, a simple keyword filter would probably do, captcha might be nice too but would break api i guess.

example of spam (although not my own site, vhost troubles, hope the owner doesn't mind)
http://paste.qth.fr/index.php/lists

adding support for another shortener

I seen the option to use bit.ly API , but i m developping my own ( well, forked ) opensource shortener ( https://github.com/neofutur/gwgd ), it also have an API : https://github.com/neofutur/gwgd/blob/master/api.php , you can try it on http://gw.gd/

I could add support for gwgd shortener in rss2twi ( neofutur/rss2twi.php@068ebf8 ) and hope i can add it to stikked,

now my questions :

  • would you be ok to add support for more shorteners ( gwgd, isgd ) ?
  • if you are ok, and can give me the files / functions I ll have to modify, i can try to do it myself and send the pull request
  • if you want to do it yourself , even better i dont know this framework and it will probably be easier /faster for you ;)

Many thanks for spamadmin + 5 ideas/feature requests

first many thanks for the spamadmin feature, I badly needed it, recently found 40k spams on my http://p.gw.gd stikked instance.

I started to hack the code locally to add the same kind of features ( storing ip addresses and allowing to cleanup the spam ), I finally just had to git pull to get your implemenation, much easier and its working great ;)

Now the 4 antispam ideas for the spamadmin section :

  • the most important imo : a "top posters" page , where I can see the ips that posted the most pastes , ips who posted thousands of them are generally the most important spammers to cleanup / ban.

  • a useful one : having options for some kind of rate limiting, a same ip cant post more thant 1 paste / minute or 10 pastes / day ( just an example )

  • the default ip range is too big imo ( /16 ) it could be really better to have 3 options

    • block this exact ip
    • block the /24 ( .* )
    • block the /16 ( .. )
      but blocking 255*255 = 65025 ips . . . is really too much seriously
  • adding an option in the config file to use "rel=nofollow" in the paste links , that wont stop pure spammers, but those just searching for SEO will get nothing if the links all have the nofollow attribute for search engines.

  • blacklist , 100% of the spams on my pastebin are randomliks.es.tl , if I could blacklist .es.tl or better http://*.es.tl . . . . would be so great ;)

    if you are interested in developping those, I ll just wait for you, If you can accept those features as pull requests but wont have time to implement them, I ll try to implement them and send a pull request.

Darker Theme

Hi, how do I replace the light theme with a much darker one. Im rubbish with CSS xD

Quotalevels for posts

In addition to #10 I thought about quota levels to prevent spammers:

  • Daily quotalevel that prevents adding new pastes to the db if it was reached + inform the admin (send mail)
  • Global quotalevel that prevents adding new pastes to the db if it was reached + inform admin

remove_invisible_characters removing legitimate paste content.

Hi guys,

I installed and started using your pastebin last week, and today we noticed that some legitimate content (example bellow) was removed. I looked in the code and think it's due to remove_invisible_characters[1] removing HTML special charaters pasted in hexadecimal (I think).

Is this a feature? Could it be something wrong in my configuration? Is there a work arround?

Example (C code):

int main(void)
{
    // When pasted, only "s" remains as the format string.
    printf("%12s", "I am a string");
    return 0;
}

I am sorry if it is not the right place for this. Thank you in advance.

[1] https://github.com/claudehohl/Stikked/blob/master/htdocs/system/core/Common.php#L514

Issues longer than 4 weeks are reaped at the very next cleanup cycle

Hi,

I had the config set with a max of 8 week retention, but people started to complain that their posts would disappear shortly after commit.

In doing some testing, it appears that anything set to delete after more than 4 weeks (or 40320 minutes as per the config) isn't honored and gets reaped the very next cron job's cleanup cycle. In fact, even going to 40321 is enough to wipe it on the next cleanup run.

Is this a known bug? I thought at first maybe it's anunsingned short issue, but the 4 week timeframe is just fine.

Thanks

typo in application/views/defaults/paste_form.php

Hello!

I'm configuring my instance of stikked right now and when i wanted to change something onf the paste_form.php i noticed a small error.

lines 90 and following:
"0" => "Keep Forever",
"30" => "30 Minutes",
"60" => "1 hour",
"360" => "6 Hours",
"720" => "12 Hours",
"1440" => "1 Day",
"100080" => "1 Week", //should be 10080
there is a 0 to much!

Pastes with expire date of 1 week expires immediately

If I set a paste expire date to 1 week, it will be stored in the database with the following settings:

expire = 0
toexpire = 1

The next cron job will delete the paste immediately. Other expire dates are working.

Null value error in column "session_data" on insert into "ci_sessions"

Fresh install of Stikked on Ubuntu 11.10 amd64, using PostgreSQL 9.1.3.

ERROR MESSAGE

A Database Error Occurred
Error Number:

ERROR: null value in column "session_data" violates not-null constraint

INSERT INTO "ci_sessions" ("session_id", "ip_address", "user_agent", "last_activity") VALUES ('35dd053948d1940c36b92466449c117b', '10.1.7.9', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 ', 1337984853)

Filename: /var/www/p/libraries/db_session.php

Line Number: 275

SETUP

Database set up with Stikked default name, password and schema, granted stikked role as owner of stikked, with create rights. Changed "application/config/database.php" so that default dbdriver was postgre.

HOW TO CAUSE

I go to the URL, which displays as expected. I fill in some content and submit, and get the error above. Attempting to go to the original URL will continue to display this error, meaning nothing further can be done after this error happens. It happens the first time, which prevents anything further from being done. I tried changing some of the page options, with no change in behavior.

OTHER INFO

It appears the database is being created, with two tables "ci_sessions" and "pastes" and the application starts as expected. You just can't submit anything without that error occurring.

Mobile support

I've seen references to various mobile platforms in Stikked php code, but am uncertain how to enable\implement mobile support, any suggestions?

Geshi issue

I finally find what is the possible reason of the issue in #53.
Because I never used the PHP language, I don't know why this happens, but I will Google it later.
The reason why creating some PHP code snippet is because Geshi calling hang there.
The issue also can be found when viewing the rss in the list pages.

In the getLists() of pastes.php, I added error_log() method,
if ($this->uri->segment(2) == 'rss')
{
error_log(htmlspecialchars_decode($row['raw']), 0);
$data['pastes'][$n]['paste'] = $this->process->syntax(htmlspecialchars_decode($row['raw']) , $row['lang']);
error_log('done', 0);
}

When there is PHP code snippet, for example the below, I cannot see the 2nd log printed.
My PHP version is 5.4.14, and Apache is 2.4.4.
I tried your demo web site, it works fine. If it is the same Stikked version, I suppose it is because the PHP version issue.

Add Authcode to Paste form

This would allow public pastes to be viewed by anyone (if not private) but would restrict who can paste.

In the paste form, add an additional field (if authcode option = true) that would then compare the authcode to the setting in the config file.

If the paste does not include the authcode when it is required, the user is sent back to the paste form with the error back to the form.

This cuts down on spamming and can be used to restrict pastes to clients, but still leave the system public for public view.

gwgd

Hey!

Dont know if its the right place to ask but here goes!

How do i use gwgd with stikked?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.