Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum

Programming / Scripting / Coding Forum Discussion HTML, C++, PHP, CGI, JSP, perl etc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2007, 07:50 PM
rock
Status: Offline
Senior Member
 
Join Date: Aug 2006
Location: i dont know
Posts: 242
rock is on a distinguished road
Send a message via AIM to rock Send a message via MSN to rock Send a message via Yahoo to rock Send a message via Skype™ to rock
Default addon for webmaster tools

Other webmasters feel free to use this, I find it pretty usefull.

Html Code encrypter & decrypter (works like a charm to protect sourcecode on whole page or some of it)

HTML Code:
 <script language="JavaScript" type="text/javascript">


var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
var i=0;
function initStyleElements() {
var c = document.pad;
if (ie)
{
c.compileIt.style.backgroundColor="#C0C0A8";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0A8";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#C0C0A8";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0A8";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0A8";
c.clear.style.cursor="hand";
}
else return;
}

function generate() 
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value=\\\\\\\\\\\'Compiling...\\\\\\\\\\\';
setTimeout("compile()",1000);
}
else alert(\\\\\\\\\\\'First enter something to compile and then press Compile It\\\\\\\\\\\')
}
function compile() 
{
document.pad.text.value=\\\\\\\\\\\'\\\\\\\\\\\';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
}
function selectCode() /* Selecting "Compilation" for Copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert(\\\\\\\\\\\'Nothing for be selected!\\\\\\\\\\\')
}
function preview() /* Preview for the "Compilation" */
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert(\\\\\\\\\\\'Nothing for be previewed!\\\\\\\\\\\')
}
function uncompile() /* Decompiling a "Compilation" */
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert(\\\\\\\\\\\'You need compiled code to uncompile it!\\\\\\\\\\\')
}
// -->
</script> <p></p> <form name="pad" method="post" align="center"> <textarea style="WIDTH: 95%; BACKGROUND-COLOR: #ebebeb" name="text" rows="11" cols="58"> </textarea><br> <br> <input onclick="generate()" type="button" value="Encrypt" name="compileIt"> <input onclick="selectCode()"
    type="button" value="Select" name="select"> <input  onclick="preview()" type="button" value="Preview" name=
    "view"> <input onclick="uncompile()" type="button" value="Source" name="retur"> <input
    type="reset" value="Clear" name="clear"> </form>
__________________
http://boredportal.com
Bored Portal | Games Movies Jokes Forum and counting
Reply With Quote

  #2 (permalink)  
Old 03-19-2007, 04:19 PM
gojiela
Status: Offline
Member
 
Join Date: Mar 2007
Posts: 82
gojiela is on a distinguished road
Default

some questions:

1. where do i put this code?
2. what's the purpose of its code?
3. how it is work?

thanks in advance
Reply With Quote

  #3 (permalink)  
Old 03-19-2007, 06:39 PM
ulgaming
Status: Offline
Senior Member
 
Join Date: Jan 2007
Posts: 108
ulgaming is an unknown quantity at this point
Send a message via MSN to ulgaming
Default

Quote:
Originally Posted by gojiela View Post
some questions:

1. where do i put this code?
2. what's the purpose of its code?
3. how it is work?

thanks in advance
You need to put this code after the </head> tag i think.It can be anywhere after </head> tag.
The purpose of this code is that it encrypts the page source.
After you place it in the page you want to encrypt it then protects the page source from being viewed by anyone.
__________________
ClickEX - Click Exchange for Share-a-pic and Share-a-flick! Helping earn more! Also get paid to do offers! Many More!
Ultimate Gaming - A site with a fun forum,blog,web directory and topsite
Reply With Quote

  #4 (permalink)  
Old 03-21-2007, 06:34 AM
freelikehell
Status: Offline
Senior Member
 
Join Date: Jan 2007
Posts: 100
freelikehell can only hope to improve
Default

i dunno .. this code seems buggy.. a lot of things that ran on javascript have vanished from my preview page.
i dunno what the "else" commands in the code does...
is it taking an input from the users??
__________________
IndiansPage.Info
welcome to the new world
Free Website Directory & Advertising
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a motorola v3i phone and I use mobile phone tools to create an MMS,but I Kimberly B General Mobile Phone Discussion 0 07-31-2008 09:29 AM
addon domain hotsite Free Web Hosting Support 1 06-16-2008 09:54 PM
Best Webmaster Forums sites ? flickall Internet 5 11-04-2007 08:26 PM
Webmaster Tools John News 0 03-16-2007 12:15 AM
cant set up addon domain..help plz. freelikehell Free Web Hosting Support 11 02-08-2007 05:58 AM


All times are GMT -7. The time now is 05:53 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

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