Skip to content
WJunction - Webmaster Forum

How to post HTML/PHP code direct in news?

Status
Not open for further replies.

NikolaT23

Established Member
162
2012
3
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.

About the author

N
Established Member · Joined
162
Messages
3
Reactions
18
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom