The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am working on a modification and I have a quick question -
What hook/file is used just before the vbulletin page is displayed? I am looking to add a line of php code to the end of every outputted template before it is displayed to the user. I have looked through the code and I have come up with: eval('print_output("' . fetch_template('TEMPLATENAME') . '");'); as the line that outputs the template. It would be ideal if I could create a plugin to do this. Thanks, John --------------- Added [DATE]1206227479[/DATE] at [TIME]1206227479[/TIME] --------------- I am trying to use IonCube's HTML encoder (http://www.ioncube.com/html_encoder.php) to encode outputted files. |
#2
|
||||
|
||||
![]()
It depends on the page. There is no "universal" hook, unless it's been added very recently.
|
#3
|
|||
|
|||
![]()
How would you suggest protecting the source code for a page created with Gary King's Template Article (https://vborg.vbsupport.ru/showthread.php?t=62164) using IonCube's HTML encoder?
|
#4
|
||||
|
||||
![]()
HTML cannot be "protected". Browsers need raw HTML to display anything, so in the end, you'll get it anyway. IonCube's encoder only obfuscates HTML, which only slows down viewing the source code. To be honest with you, I got the source code of the "encoded" demo page in 5 seconds.
|
#5
|
||||
|
||||
![]()
the hook you are looking for is: global_complete
|
#6
|
|||
|
|||
![]()
My main goal is to protect some JavaScript and PHP source code... It is very important that this code is protected. I filed a provisional patent on the source code and it will be central to the uniqueness of my website. I am not as worried about protecting the PHP source code.
Would you suggest putting the source code in a directory above public_html so it would not be accessible by URL, linking to the code and obfuscating the <script src="../../myfile.js"> statement and the PHP include statements and the JavaScript code itself? Is there anything else you would suggest doing? I realize I can't fully protect JavaScript code, but I want to make it difficult for someone to view. Thanks, John |
#7
|
||||
|
||||
![]()
If the browser can view it, it's easy to view. I can assure you, anything you do the the source to try to hide it won't really do anything. I can promise you I can get such raw source code in a matter of seconds.
|
#8
|
||||
|
||||
![]()
Javascript is even easier as you can just download the js file it uses.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|