How to post HTML/PHP code direct in news?

Status
Not open for further replies.

NikolaT23

Active Member
162
2012
3
0
I need to post something like this:
Code:
<script language="JavaScript" type="text/javascript" src="http://moevideo.net/video.php?file=97070.9707d4c2206849710442eeb8e8d7&width=600&height=450"></script>

or

Code:
<iframe width="600" height="480" frameborder="0" src="http://embed.videoweed.es/embed.php?v=4459109b639af&width=600&height=480" scrolling="no"></iframe>

When I post this i PHPMyAdmin for example < change to &lp and > change to....

Please help!
Thanks in advance!
 
4 comments
In default, file main.tpl is a template file of DLE. But you want to insert PHP code in this file for some purpose.

Insert PHP Codes In Main.tpl


Use of any PHP inserts in templates. So often a need to paste on your website PHP script third party. However, by default, this feature is disabled in the script. Therefore we offer you a little h@ck that allows to use any PHP code in templates
PHP:
1. Open file index.php

Find

echo $tpl->result['main'];

Replace to

eval (' ?' . '>' . $tpl->result['main'] . '<' . '?php ');


2. That all!
 
7cmcncbpqscyljxszolr.png

Can`t see anything of HTML/PHP....
Images, text and other work OK!
 
If you are doing this, your website really in big problem because big hole will be there :). Other admin or some one can paste "devil" script (shell) easily.

* Just tought
 
Status
Not open for further replies.
Back
Top