<!DOCTYPE html>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<meta name="style" content="day1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!--
Copyright 2021, 2024 5 Mode
This file is part of SnipSwap.
SnipSwap is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SnipSwap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SnipSwap. If not, see <https://www.gnu.org/licenses/>.
-->
<title>SnipSwap: Swapping code like burgers..</title>
<link rel="shortcut icon" href="Public/favicon.ico" />
<meta name="description" content="Welcome to SnipSwap"/>
<meta name="author" content="5 Mode"/>
<meta name="keywords" content="SnipSwap,snippet,code,swap.swapping,on,premise,solution"/>
<script src="Public/js/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="Public/js/common.js" type="text/javascript"></script>
<script src="Public/js/bootstrap.min.js" type="text/javascript"></script>
<script src="Public/js/sha.js" type="text/javascript"></script>
<link href="Public/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link href="Public/css/style.css?v=1631827555" type="text/css" rel="stylesheet">
<script>
function showEncodedPassword() {
if ($("#Password").val() === "") {
$("#Password").addClass("emptyfield");
return;
}
passw = encryptSha2( $("#Password").val() );
msg = "Please set your new pasword in the config file with this value:";
alert(msg + "\n\n" + passw);
}
function hideTitle() {
$("#myh1").hide("slow");
}
function startApp() {
$("#HCsplash").css("display","none");
//$("#HCsplash").hide("slow");
$(document.body).css("background","#ffffff");
$("#frmHC").show();
}
function _startApp() {
setTimeout("startApp()", 1000);
}
window.addEventListener("load", function() {
$("#frmHC").hide();
//Splash
$("#HCsplash").show();
//$(document.body).css("background","#000000");
//$("#HCsplash").show("slow");
//setTimeout("hideTitle()", 2000);
//setTimeout("startApp()", 4000);
}, true);
window.addEventListener("load", function() {
// Fisnished the Intro load the app..
//document.getElementById("vplayer").onended=_startApp;
setTimeout("_startApp()", 6000);
});
</script>
</head>
<body style="background:#0d0d0d;">
<div id="HCsplash" style="padding-top: 40px; text-align:center;color:#d4b0dc;font-family:'Bungee Hairline';">
<div id="myh1" style="position:relative; top:80px;"><H1>SnipSwap</H1></div><br><br><br><br>
<img src="Public/res/code.png" style="width:310px;">
</div>
<form id="frmHC" method="POST" target="_self" enctype="multipart/form-data" style="display:none;">
<div class="header" style="margin-top:18px;">
<a href="http://snipwap.org" target="_self" style="color:#000000; text-decoration: none;"> <img src="Public/res/code.png" style="width:22px;"> SnipSwap</a> <a href="https://github.com/par7133/SnipSwap" style="color:#000000;"><span style="color:#119fe2">on</span> github</a> <a href="mailto:info@snipswap.org" style="color:#000000;"><span style="color:#119fe2">for</span> feedback</a> <a href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:#000000;height:27px;text-decoration:none;"> get support </a>
</div>
<br>
<div style="clear:both; float:left; padding:8px; width:15%; height:100%; text-align:center;">
<div style="padding-left:10px;text-align: left;">
Download<br>
<a href="https://github.com/par7133/SnipSwap/archive/refs/tags/v1.0.9.zip">Release 1.0.9 (zip)</a><br>
<a href="https://github.com/par7133/SnipSwap//archive/refs/tags/v1.0.9.tar.gz">Release 1.0.9 (tar.gz)</a><br>
</div>
<br><br>
<img src="Public/res/SSgenius.png" alt="SS Genius" title="SS Genius" style="position:relative; left:+6px; width:90%; border: 1px dashed #EEEEEE;">
<br><br><br>
<input type="text" id="Password" name="Password" placeholder="password" style="font-size:10px; background:#393939; color:#ffffff; width: 90%; border-radius:3px;" value="" autocomplete="off"><br>
<a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; color:#000000; font-size:12px;">Hash Me!</a>
<br><br><br>
</div>
<div style="float:left; width:85%;height:100%; padding:8px; border-left: 1px solid #2c2f34;">
<div id="splash" style="border-radius:20px; position:relative; left:+3px; width:98%; background-color: #33aced; padding: 20px; margin-bottom:8px;">
<button type="button" class="close" aria-label="Close" onclick="close-Splash();" style="position:relative; left:-10px;">
<span aria-hidden="true">×</span>
</button>
Hello and welcome to SnipSwap!<br><br>
SnipSwap is a light, simple, "peer-to-peer" software on premise for swapping your snippets of code with others.<br><br>
SnipSwap is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.<br><br>
First step, use the left side panel password field to create the hashed password to insert in the config file.<br><br>
As you are going to run SnipSwap in the PHP process context, using a limited web server or phpfpm user, you must follow some simple directives for an optimal first setup:<br>
<ol>
<li>Check the write permissions of your "data" (repo) folder in your web app private path; and set its path in the config file.</li>
<li>Set the default Business Label, Link and Email of the stuff your are going to swap.</li>
<li>Set the MAX_DFT_NEW_SNIP value stating the max number of snippet the app is going to initially create.</li>
<li>In Public/js/cube-code.js, in mystart class method, check if you are using 'http' or 'https'.</li>
</ol>
<br>
Hope you can enjoy it and let us know about any feedback: <a href="mailto:info@snipswap.org" style="color:#e6d236;">info@snipswap.org</a>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</form>
<div class="footer">
<div id="footerCont"> </div>
<div id="footer"><span style="background:#E1E1E1;color:black;opacity:1.0;margin-right:10px;"> <a href="dd.html">Disclaimer</a> A <a href="http://5mode.com">5 Mode</a> project and <a href="http://demo.5mode.com">WYSIWYG</a> system. Some rights reserved.</span></div>
</div>
<script>
function setFooterPos2() {
if (document.getElementById("footerCont")) {
//if ($("#Password").val() === "") {
// tollerance = 48;
// } else {
// tollerance = 15;
//}
tollerance = 22;
$("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
$("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance + 6) + "px");
}
}
setFooterPos2();
//window.addEventListener("load", function() {
//
// setTimeout("setFooterPos2()", 4000);
//
//}, true);
</script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(88233240, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/88233240" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>