Jump to content

debuging cPanel type interface


discorevilo

Recommended Posts

i have made a cPanel type File Manager for editing selected pages only however when it saves them it puts a \ by all the " and ' witch i cant have it doing can anyone help... here's the code i am using to save the files
[a href=\"http://www.olliespage.net/stuff/stuff2.txt\" target=\"_blank\"]http://www.olliespage.net/stuff/stuff2.txt[/a] (i couldnt post the code so i had to link to it)
Link to comment
Share on other sites

right i've sorted that now umm i need help with listing directorys & files... i need to have it spit so that directorys have ...
[code]<tr><td width=50 align=left><a href="list.php?dir=<? echo $dirnam; ?>" target="filemain"><img border=0 src="images/i-directory.gif"></a></td><td align=left><a href="list.php?dir=<? echo $dirnam; ?>" target="filemain">
     <? echo $dirnam; ?></a></td><td>0 k</td><td><? echo substr(sprintf('%o', fileperms('<? echo $dirnam; ?>')), -4); ?></td></tr>[/code]
($dirnam must be the name of the directory and it must be able to do this for every directory in the folder its in)
and then after all the directorys are listed then the files must be listed like so...
[code]<tr><td width=50 align=left><a href="select.php?dir=<? echo $filepath; ?>" target=infofr><img border=0 src="images/i-regular.gif"></a></td><td align=left><a href="select.php?dir=<? echo $filepath; ?>" target=infofr>
     <? echo $filename; ?></a></td><td>0 k</td><td><? echo substr(sprintf('%o', fileperms('<? echo $filepath; ?>')), -4); ?></td></tr>[/code]
($filepath must be the full and proper path to the file from the root directory [C:/appserv/www/])
can anyone help with a code to do this?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.