Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

viewsource page and function

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  

Do you think you will use this function/page?
Yes
50%
 50%  [ 1 ]
No
50%
 50%  [ 1 ]
I'll modify and repost.
0%
 0%  [ 0 ]
Total Votes : 2

Author Message
Sunzaru
Smarty Rookie


Joined: 20 May 2006
Posts: 11

PostPosted: Thu Feb 15, 2007 7:25 am    Post subject: viewsource page and function Reply with quote

i wanted to write a restricted/reusable code that allowed me to pass a variable (filename) and would then use some code i found here to display the sourcecode with line numbers.

sample useage is to type in this address

this will show the source of the function i whipped up. For security reasons i have a business practice to make all 'confidential' information have a name 'config' in them. such as database setting files... or other things that i dont want people to be able to view the source of.

http://smarty.cacklingmadly.net/source.php?view=source.php

2 more samples of it working.
http://smarty.cacklingmadly.net/source.php?view=basic.tpl

http://smarty.cacklingmadly.net/source.php?view=index.php
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP