Page 1 of 1

Hiding Files and finding them with databases

Posted: Fri Jan 09, 2004 9:28 pm
by wdtechzone
I have a menu which I bought. (Milonic.com) I wanted to encrpyt my site into javascript with an encryptor. That wont work because you need javascipt to open menu on the web. Javascipt in javascript like that wont work. So i was hoping that i could use php/mysql to go to a folder within a folder to get the files and wont display the menu in the source.
for example i have the php/mysql configuration goto the folder1/folder2/menu.js and the other information and displays it on main page. The source i need to hide is...
<SCRIPT language=JavaScript src="/menu_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/menu_data.js" type=text/javascript></SCRIPT>
I dont need to hide the mmenus4 or mmenudom. But if i can i would appreciate it. what i am hoping to do is use the php/mysql to go to the folders, get the files and display on main page having only the /menu_whatever.js in the src of that script not the /folder/folder/whatever.js or not even having that part in the source. If anyone knows how to do this or an even better way to help me keep my menu safe from people stealing it from me (Because i payed $40 dollars for it with license) Thanks alot whoever can help!

Basic Overview:
-Mysql/php go to folder1/folder2/menu_data.js .
-Get Infomormation.
-Display Dhtml Menu.
-Only have /menu_data.js in source code not showing folders so cant be stolen.
-Or not showing the /menu_data.js at all.

Thanks!

java

Posted: Mon Jan 12, 2004 9:43 am
by ol4pr0
Hmmm.. first of all.. since you have bought that script i think you should ask the sales departement for some help. :idea:


now i dont have a clue why you can not mix php with java

and 3th.

The only way to keep youre source save is to not have it on the internet!!! :!:

Posted: Mon Jan 12, 2004 4:08 pm
by wdtechzone
Well.. i have recently purchased 2 php/mysql books. I have read up on security. I put the files into a database (the ones i need hidden) and in php, i had them load on main page. This worked great... thats true.. the only way to keep thing secure is not to put them on the internet.. lol.