Menu

[238d8c]: / index.html  Maximize  Restore  History

Download this file

216 lines (158 with data), 8.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!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;">&nbsp;<img src="Public/res/code.png" style="width:22px;">&nbsp;SnipSwap</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/par7133/SnipSwap" style="color:#000000;"><span style="color:#119fe2">on</span> github</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:info@snipswap.org" style="color:#000000;"><span style="color:#119fe2">for</span> feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:#000000;height:27px;text-decoration:none;">&nbsp;&nbsp;get support&nbsp;&nbsp;</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;">
&nbsp;Download<br>
&nbsp;<a href="https://github.com/par7133/SnipSwap/archive/refs/tags/v1.0.9.zip">Release 1.0.9 (zip)</a><br>
&nbsp;<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;">
&nbsp;<br><br><br>
&nbsp;<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>
&nbsp;<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">&times;</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">&nbsp;</div>
<div id="footer"><span style="background:#E1E1E1;color:black;opacity:1.0;margin-right:10px;">&nbsp;&nbsp;<a href="dd.html">Disclaimer</a>&nbsp;&nbsp;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>
MongoDB Logo MongoDB