Location: PHPKode > projects > MembersGear > membersgear/installation/index.php
<?php
require_once "config/config.php";

$FilesPermissionsUnchanged=array();
$folderPermissionUnchanged=array();
$FileArray=array();
$folders=array();

  
//$phy_dir=substr(PHYSICAL_DIR_INSTALLATION,0,strrpos(PHYSICAL_DIR_INSTALLATION,"/"));


$FileArray[]="config/db.php";




 if(function_exists('chmod'))
  {
      
      foreach($FileArray as $val)
       {
           if(file_exists(PHYSICAL_DIR_INSTALLATION.$val))
           {
               $result=false;
               $filename=PHYSICAL_DIR_INSTALLATION.$val;  
               $result=@chmod($filename,0777);  
               if(!$result)
                {
                  if(! is_writable($filename))
                  $FilesPermissionsUnchanged[]="/".$val;
                }  
            }
            
       }
       
     
  }
 else
  {
  
     foreach($FileArray as $val)
      {
           if(file_exists(PHYSICAL_DIR_INSTALLATION.$val))
           {
               $result=false;
               $filename=PHYSICAL_DIR_INSTALLATION.$val; 
               if(! is_writable($filename))
               $FilesPermissionsUnchanged[]="/".$val;
            
           }
            
       }
        //$folderPermissionUnchanged=$folders;
         $FilesPermissionsUnchanged=$FilesPermissionsUnchanged;
        //$smarty_installation->assign('msg','System could not chmod 777 to following files and folder.Please Manually change it.'); 
  }  
  

$smarty_installation->assign('Folder_Permissions',$folderPermissionUnchanged);  
$smarty_installation->assign('File_Permissions',$FilesPermissionsUnchanged);
$smarty_installation->display('installation_startup.tpl');
  
?>
Return current item: MembersGear