Jump to content

profile website help needed :)


runnerjp

Recommended Posts

hey guys.. ok this is pritty big and complex so i will try my best to tell you lol ok me and a friend have come up wiht a profile script but we are now stuck...this is why

 

 

The way the program works is when someone visits the

user's profile page, the script detects the directory using php's cwd

function. The profile info is indexed in the database by the full directory

path. After the lookup, the script plugs in the info for that profile. This

can only work in the user's directory. i had to make it so that the user area was installed by the script so that it solved sum security issues.

 

we want to modify the script so that we have a header and and body what we use for all other bits of information like so

(i will just paste the body because this is where the content needs to go)

      <center><?include("include/info.inc.php"); ?></center>
    
    <?include("$menu");?></td>	
    <td width="1%" align="left" valign="top" bgcolor="#FFFFFF">

<div id="linedown">
<img src="http://www.runnerselite.com/images/linedown.jpg" alt="linedown"></div></td>
<td width="84%" align="left" valign="top">
<?
	if (file_exists($content)) {
	include($content);
	} else {?><?echo $content;?>
</p><?} ?> 

 

see the content script is where we have all the content show

 

With haveing it so that we link the body and header with the users profile, nobody else would see the user's profile since the

profile would be in the main directory and php's cwd function couldn't get

the individual info to use.

 

 

any ways we can work round it ??

 

 

hope thats informational for you lol

Link to comment
https://forums.phpfreaks.com/topic/41263-profile-website-help-needed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.