Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Why update-profile-include?

Asked Modified Viewed 4,156 times
W
wayno
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

Both in PHPFusion 6 and 7, the data from edit-profile.php is sent to update-profile-include.php and inserted to sql there. But why? Is it because of performance optimization or better security?
In e.g. both /administration and register.php the data is processed in the same file.

/wayno
0 replies

6 posts

W
wayno
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

I find the question rather simple, yet none of the 100 viewers have been able to answer it. :(
0 replies
J
jantom
J
jantom 10
...because the Prophet is only one...
  • Junior Member, joined since
  • Contributed 44 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Because it is easier to have one file for operation at users datas. And functions, which you can find there, aren't necessary for cms working, so the maincore.php don't have them. It's simple.
Edited by jantom on 24-06-2009 17:40,
0 replies
W
wayno
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

update-profile-include.php does not create any functions, as far as I can see. And wouldn't it be more logic and simple to process the data in edit-profile.php, if update-profile-include.php does not carry any security or optimizational reason?
0 replies
W
wayno
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

bump. It cannot be that hard...
0 replies
S
starefossen
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
answered
Senior Member

Well I don't know if I can give you the very best reason but here is what I got for you.

Too long files are never too good when working with PHP, and we divided the edit profile in two where edit_profile.php takes all the visual stuff and update_profile_include.php takes all the "behind the scene" stuff such as calling to the database. It's a bit better when working on it, if you are altering it visual you alter edit_profile.php else it's update_profile_include.php.

With the new User Fields included there shouldn't be any reasons why you should alter any of those files so it shouldn't matter to much for normal users. :)


Was that good enough for you?
0 replies
W
wayno
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Yes that was a very useful answer, thanks!
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

S
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
J
J
jantom 10
...because the Prophet is only one...
  • Junior Member, joined since
  • Contributed 44 posts on the community forums.
  • Started 6 threads in the forums
W
W
wayno 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet