vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: System Improvements :: Suggestions :: Include External File - View Topic
Topic Rating: *****
Printable View
Simie
New Member
*

Posts: 20
Status: Offline
Joined:  
Reputation: 0%  


pm
Include External File (15th Feb 08 at 8:00pm UTC)
This idea is about the headers and footers.

I think we should be able to include a special tag in the headers/footers, such as:

<!--INCLUDE{URL TO EXTERNAL FILE}-->

That will cause the external file to be loaded, and the output displayed.

Now, this wouldn't be much use on its own, but if you added "tags", we could use it to get (secure) user-specific content.

eg:

You want to display a message to only certain usernames, but you don't want to display the source to anyone.

You do something like this:

<!--INCLUDE{http://example.com/getMessage.php?username=[username]}-->

Where [username] would automatically be replaced by the user who is viewing the page's username.

This would be good for making PHP/JS combo codes more secure {Smile}

Note: This isn't just using PHP code, the server would only fetch the OUTPUT of the external file, not execute anything itself.
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Include External File (15th Feb 08 at 8:52pm UTC)
So use file_get_contents on the included file?

Sounds extremely sexy, and will help out my codes a lot. {Smile}

However, I think we should implement it in a way that will allow for future features to be added on. {Smile} Something like this:

Code:
 
  1. <#VF_CODE_START#>
  2. include("http://www.site.com/script.php?user="+current_user);
  3. include("http://www.site.com/script.php?user="+current_user+"&step=2");
  4. <#VF_CODE_END#>
 


Something like that. {Smile}

rroll.to— Shorten a link, rickroll your friends.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Include External File (15th Feb 08 at 9:40pm UTC)
Just wondering, but what could this be used for? My mind seems to have gone blank and I cannot think of any codes which you wouldn't want users to see {Unsure}

Image
dog199200
Guest
Re: Include External File (15th Feb 08 at 9:45pm UTC)
umm it could be used to make javascripts to be called easier. well any scripting for that matter.
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Include External File (15th Feb 08 at 9:54pm UTC)
Anything that uses server-side that needs user-specific rules. {Smile}

My lottery system, for instance. It's very hard to secure a username across domains; this way, users can't see what site is being accessed, or what it's looking for. That way, codes like this will be more secure. {Smile}

rroll.to— Shorten a link, rickroll your friends.
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 33
Joined:  
Reputation: 8%  


pmmsnaim
Re: Include External File (15th Feb 08 at 9:59pm UTC)
Im no good with coding but i had a code on my forum that russell made twas a affiliate database which used a server yo count up hits and add them via admin panel to a database

would that of used it?

ting-tong2k6@hotmail.com
Simie
New Member
*

Posts: 20
Status: Offline
Joined:  
Reputation: 0%  


pm
Re: Include External File (15th Feb 08 at 10:16pm UTC)
 
Anything that uses server-side that needs user-specific rules. {Smile}

My lottery system, for instance. It's very hard to secure a username across domains; this way, users can't see what site is being accessed, or what it's looking for. That way, codes like this will be more secure. {Smile}


Thats what I was thinking. You could securely get content for ONE user only, and not let them switch the username in the URL for someone elses, to edit their settings or get their info. {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Include External File (15th Feb 08 at 11:37pm UTC)
 
 
Anything that uses server-side that needs user-specific rules. {Smile}

My lottery system, for instance. It's very hard to secure a username across domains; this way, users can't see what site is being accessed, or what it's looking for. That way, codes like this will be more secure. {Smile}


Thats what I was thinking. You could securely get content for ONE user only, and not let them switch the username in the URL for someone elses, to edit their settings or get their info. {Smile}


Thus making my Points code oh so more secure! ^_^
 Printable View

All times are GMT+0 :: The current time is 12:08am
Page generated in 0.2021 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums