Skip to content

Swapping code like burgers? Your p2p, drag-n-drop solution - PHP: <=8.1, GPL

License

Notifications You must be signed in to change notification settings

par7133/SwapCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b7ef9b3 · Jul 24, 2022

History

69 Commits
Jul 24, 2022
May 7, 2022
Jul 23, 2022
Apr 11, 2022
Apr 11, 2022
Jul 23, 2022
Apr 11, 2022
Jul 23, 2022

Repository files navigation

Swap Snippet

Swapping code like burgers? Here your p2p, drag-n-drop solution - GPL License

Hello and welcome to Swap Snippet!

Swap Snippet is a light, simple, "peer-to-peer" software for swapping snippets of code with others, by dran-n-drop.

Swap Snippet is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.

Swap Snippet got built behind some cool features like object drag-n-drop between browser windows, full object serialization and xml.

First step, use the left side panel password field to create the hashed password to insert in the config file.

As you are going to run Swap Snippet in the PHP process context, using a limited web server or phpfpm user, you must follow some simple directives for an optimal first setup:

  1. Check the write permissions of your "data" (repo) folder in your web app private path; and set its path in the config file.
  2. Set the default Business Label, Link and Email of the stuff your are going to swap.
  3. Set the MAX_DFT_NEW_SNIP value stating the max number of snippet the app is going to initially create.
  4. In Public/js/cube-code.js, in mystart class method, check if you are using 'http' or 'https'.

Hope you can enjoy it and let us know about any feedback: [email protected]

Please note that version 2.0.5 > is incompatible with previous versions.

###Screenshots:

Swap Snippet in action