Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Fiile permissions button.
Old 08-09-2009, 11:22 AM Fiile permissions button.
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
I currently have this:

[b]PHP/b]
PHP Code:
<?php
function check_perms($path,$perm)
{
    
clearstatcache();
    
$configmod substr(sprintf('%o'fileperms($path)), -4); 
    
$trcss = (($configmod != $perm) ? "background-color:#fd7a7a;" "background-color:#91f587;");
    echo 
"<tr style=".$trcss.">"
    echo 
"<td style=\"border:0px;\">"$path ."</td>"
    echo 
"<td style=\"border:0px;\">$perm</td>"
    echo 
"<td style=\"border:0px;\">$configmod</td>"
    echo 
"</tr>";  
}
?>
<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"text-align:center;\">
         <tr>
        <th style="border:0px;"><b>File Name</b></th>
        <th style="border:0px;"><b>Needed Chmod</b></th>
        <th style="border:0px;"><b>Current Chmod</b></th>
    </tr>
    <?php 
            check_perms
("cache","0777");
        
check_perms("include/keys","0777");
        
check_perms("backup","0777");
        
check_perms("uploads","0777");
        
check_perms("include/template","0777");
        
check_perms("include/user","0777");
        
check_perms("img","0777");
        
check_perms("img/avatars","0777");
    
?>
</table>
Basicly I need that when all file permissions are correct you are allowed to go to the next page of the installation, if not there can be a refresh button, so that when you change permissions, you can refresh the page to see if the Continue Installation button is showing.

Thank You.
sith717 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Fiile permissions button.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12064 seconds with 12 queries